GET_CURRENT_SCREEN_RESOLUTION
Gets the current screen resolution. ```lua local width, height = GetCurrentScreenResolution() print(string.format("Current screen resolution: %dx%d", width, height)) ```
CFX
Signature
lua
GetCurrentScreenResolution(width, height)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| int* | — | |
| int* | — |
Usage
lua
GetCurrentScreenResolution(width, height)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
