gta.createPickup

From GTA Connected
Jump to navigation Jump to search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

Pickup gta.createPickup(Vec3 position, int model, [ int type = 0 ])

Description

The gta.createPickup function is used to create a pickup.

Parameters

Type Name Presence Default Value Description
Vec3 position required n/a The 3D position for the pickup.
int model required n/a The model ID for the pickup.
int type optional 0 The type for the pickup.

Returns

Success Returns

Type Description
Pickup A handle to the pickup that was created.

Failure Returns

Type Value
null n/a

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

  • This function was previously named game.createPickup in version 1.0.71.

Related

Server Related

gta.createPickup - Previous Name: createPickup


Client Related

gta.createPickup - Previous Name: createPickup
gta.enableHelpPickup
gta.removeHelpPickup
gta.removeHelpPickups

pickup.collected