DurtyFree / alt-V-NativeUI

NativeUI for GTA V alt:V Multiplayer mod written in Javascript / TypeScript
https://altv.mp/
Apache License 2.0
46 stars 22 forks source link

Natives Deprecated #14

Closed Statuefisch9194 closed 5 months ago

Statuefisch9194 commented 1 year ago

It seems like as the Natives from NativeUI are Deprecated i updated it like this:

at line 701 replace

getScreenActiveResolution with getActualScreenResolution

at lines 1649, 2692, 2693 replace

getControlInstructionalButton with getControlInstructionalButtonsString

at lines 2125, 2415, 2419, 2422, 2434 replace

setMouseCursorSprite with setMouseCursorStyle

at line 810 add false as last Arguement like so:

game__default.drawSprite(textureDictionary, textureName, x, y, w, h, heading, color.R, color.G, color.B, color.A, true, false);

at line 735 replace

beginTextCommandLineCount with beginTextCommandGetNumberOfLinesForString

at line 747 replace

endTextCommandLineCount with endTextCommandGetNumberOfLinesForString

It works for me so if it does not for you find ur own Solution