The Lab
GRAPHICS native

GET_SCREEN_RESOLUTION

returns void2 paramsbuild 1207

Writes the screen resolution into x and y.

Signature

C
void GET_SCREEN_RESOLUTION(int* x, int* y); // 0x66773C92835D0909 b1207

Parameters

#NameType
1xint* (out pointer)
2yint* (out pointer)

Facts

Facts about GET_SCREEN_RESOLUTION
Name
GET_SCREEN_RESOLUTION
Hash
0x66773C92835D0909
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local x, y = Citizen.InvokeNative(0x66773C92835D0909, -- GET_SCREEN_RESOLUTION
  Citizen.PointerValueInt(), -- int* x
  Citizen.PointerValueInt() -- int* y
)
print(x, y)
JavaScript
const [x, y] = Citizen.invokeNative("0x66773C92835D0909", // GET_SCREEN_RESOLUTION
  Citizen.pointerValueInt(), // int* x
  Citizen.pointerValueInt() // int* y
);
console.log(x, y)
C#
var xArg = new OutputArgument();
var yArg = new OutputArgument();
Function.Call((Hash)0x66773C92835D0909, // GET_SCREEN_RESOLUTION
  xArg, // int* x
  yArg // int* y
);
int x = xArg.GetResult<int>();
int y = yArg.GetResult<int>();
All GRAPHICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.