From d389d998b9d81846cdc291558d0863f024e1de7a Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 10 May 2022 17:29:45 -0500 Subject: [PATCH] Add screen width to client natives --- scripts/client/native/connected.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/client/native/connected.js b/scripts/client/native/connected.js index 76b1f826..59425940 100644 --- a/scripts/client/native/connected.js +++ b/scripts/client/native/connected.js @@ -567,4 +567,16 @@ function getPlayerPed(client) { return client.player; } +// =========================================================================== + +function getScreenWidth() { + return game.width; +} + +// =========================================================================== + +function getScreenHeight() { + return game.height; +} + // =========================================================================== \ No newline at end of file