gta.createPickup

Revision as of 16:06, 24 July 2021 by Mex (talk | contribs)

gta.createPickup

Signature: Pickup The pickup handle. gta.createPickup(int model, [ Vec3 position = Vec3(0.0,0.0,0.0), int pickupType = 2 ])

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