Add getClosest and getClosestInDimension overloads (limit param returns an array always)
Add missing optional parameter to mp.peds.new and make all options optional
Other fixes:
Make args param in player.call and related optional (not really needed to send empty events)
Add missing vehicleDeath event
Add missing optional dimension parameter on colshape funcs (tested)
Fix (?) newTube parameter order (function is bugged and sets the dimension to the same value as range though, but this is more accurate than before anyways)
Remove mp.pickups.new since it was removed on latest version (although the rest of the object still exists)
Misc enhancements
Add mp.events.add overloads with typing for official RAGE.MP events
Change Mp declaration from type to interface, to allow extending the object easily without editing this package (many resources do this, including ones by ragempdev himself)
Add & fix new 1.1 types, functions, events and more
1.1 new stuff
packagesLoaded
event (https://wiki.rage.mp/index.php?title=PackagesLoaded)mp.network
object and its functions: startBatch and endBatchgameType
member toPlayerMp
player.callUnreliable
function1.1 fixes:
incomingConnection
event with wrong name (https://wiki.rage.mp/index.php?title=IncomingConnection)callUnreliable*
(and related) naming: actuallycall*Unreliable
(official changelog is wrong)getClosest
andgetClosestInDimension
overloads (limit param returns an array always)Other fixes:
player.call
and related optional (not really needed to send empty events)vehicleDeath
eventnewTube
parameter order (function is bugged and sets the dimension to the same value as range though, but this is more accurate than before anyways)Misc enhancements
mp.events.add
overloads with typing for official RAGE.MP eventsMp
declaration from type to interface, to allow extending the object easily without editing this package (many resources do this, including ones by ragempdev himself)