gta.createPickup
Jump to navigation
Jump to search
gta.createPickup
Signature: Pickup The pickup handle. gta.createPickup(int model, [ Vec3 position = Vec3(0.0,0.0,0.0), int pickupType = 0 ])
Usage: add a pickup, use the addToWorld function afterwards to add the pickup to the players games
Parameters
- int model The pickup model ID.
- Vec3 position optional Vec3(0.0,0.0,0.0) The position for the pickup.
- int pickupType optional 0 The pickup type.
Return
Pickup The pickup handle.
On failure: null n/a