Open Jameskmonger opened 3 years ago
It would be better if it followed this from the 1.0 branch so you would have single source of truth in the EventKey enum.
https://github.com/CocaColaBear/types-ragemp-s/blob/68e985d47e6eb7191d5a0d2e4592519bae15012b/index.d.ts#L420 Also, why continue with 0.3.7? You cant officially get the server files for it anymore.
thanks for the link @foola1, to be honest I am only just getting started with RageMP dev so have just been going along with my initial setup from a few months back
Should I be updating to the ragemp developer preview? If so I'll do that - thank you!
This change allows for strongly-typed usage of
events.add
for the specified eventsFor example if you do:
then
player
andkiller
will automatically bePlayerMp
objects, whilereason
will automatically be a numberI have got the data from the Wiki e.g. https://wiki.rage.mp/index.php?title=PlayerDeath