ragemp-types
ragemp-types copied to clipboard
Community-driven type definitions for RAGE Multiplayer
All types defined through /// must be manually specified in tsconfig, otherwise WebStorm throws an warning Unresolve variable or method tsconfig "files": [ "node_modules/@ragempcommunity/types-client/game.d.ts", "node_modules/@ragempcommunity/types-client/game/cam.d.ts", "node_modules/@ragempcommunity/types-client/game/graphics.d.ts" etc... ],
Adding more strong type annotation for colors types
#### Missing Type addProc() missing for CEF. It is possible to add Proc Events in CEF. It's same syntax as the clientside definition  #### Proof that this type exists....
#### Missing Type mp.Player mp.Vehicle mp.Object mp.Ped mp.Pickup mp.DummyEntity mp.Checkpoint mp.Colshape mp.Marker mp.TextLabel mp.Browser mp.Camera #### Proof that this type exists. [https://imgur.com/a/XGhz2kA](https://imgur.com/a/XGhz2kA)
The function getScreenActiveResolution is currently typed to include x and y as arguments, but this is incorrect. According to the [official RAGE Multiplayer Wiki](https://wiki.rage.mp/index.php?title=Graphics::getScreenActiveResolution), the function is used without any...
Mistaken with mp.nametags type. Next members should be switched to properties: [mp.nametags.orderByDistance](https://wiki.rage.mp/wiki/Nametags.orderByDistance) [mp.nametags.useScreen2dCoords](https://wiki.rage.mp/wiki/Nametags.useScreen2dCoords) Thx for your work.