GET_SCREEN_RESOLUTION
Writes the screen resolution into x and y.
Signature
void GET_SCREEN_RESOLUTION(int* x, int* y); // 0x66773C92835D0909 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | int* (out pointer) |
| 2 | y | int* (out pointer) |
Facts
| 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.
local x, y = Citizen.InvokeNative(0x66773C92835D0909, -- GET_SCREEN_RESOLUTION
Citizen.PointerValueInt(), -- int* x
Citizen.PointerValueInt() -- int* y
)
print(x, y)const [x, y] = Citizen.invokeNative("0x66773C92835D0909", // GET_SCREEN_RESOLUTION
Citizen.pointerValueInt(), // int* x
Citizen.pointerValueInt() // int* y
);
console.log(x, y)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>();Related GRAPHICS natives
- GET_SCREEN_COORD_FROM_WORLD_COORD
- GET_STATUS_OF_CREATE_LOW_QUALITY_COPY_OF_PHOTO
- GET_STATUS_OF_LOAD_MISSION_CREATOR_PHOTO
- GET_STATUS_OF_SAVE_HIGH_QUALITY_PHOTO
- GET_STATUS_OF_SORTED_LIST_OPERATION
- GET_STATUS_OF_TAKE_HIGH_QUALITY_PHOTO
- GET_TIMECYCLE_MODIFIER_INDEX
- GET_TIMECYCLE_TRANSITION_MODIFIER_INDEX
- GET_TOGGLE_PAUSED_RENDERPHASES_STATUS
- GET_TV_CHANNEL
- _ANIMPOSTFX_GET_STACKHASH
- _GET_CURRENT_NUMBER_OF_LOCAL_PHOTOS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.