RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_CURRENT_SCREEN_RESOLUTION

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 void

Parameters

NameTypeDescription
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

On this page

  • Signature
  • Parameters
  • Usage
  • Details