GetScreenSize: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 19: | Line 19: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[DrawText]] | |||
* [[SetDrawColor]] | |||
* [[SetTextDrawScale]] | |||
* [[GetTextSize]] | |||
* [[DrawLine]] | |||
* [[DrawLine3D]] | |||
* [[DrawPoint3D]] | |||
* [[DrawCircle3D]] | |||
* [[DrawBox]] | |||
* [[DrawRect]] | |||
* [[DrawTexture]] | |||
* [[DrawTextureEx]] | |||
* [[DrawMaterial]] |
Latest revision as of 20:42, 30 August 2020
Description
Get the client's screen size
Syntax
GetScreenSize()
Parameters
- This function has no parameters.
Return Value
- Get the client's screen size
Example
AddEvent("OnRenderHUD", function()
local ScreenX, ScreenY = GetScreenSize()
AddPlayerChat("Your screen size: "..ScreenX..", "..ScreenY)
end)