Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0213

Opcode Database

0213

DescriptionCreates a pickup with the given model and type at the given X, Y and Z coordinates.


Rockstar's pickup enum from the MTA Source:

0 - PICKUP_NONE
1 - PICKUP_IN_SHOP
2 - PICKUP_ON_STREET
3 - PICKUP_ONCE
4 - PICKUP_ONCE_TIMEOUT
5 - PICKUP_ONCE_TIMEOUT_SLOW
6 - PICKUP_COLLECTABLE1
7 - PICKUP_IN_SHOP_OUT_OF_STOCK
8 - PICKUP_MONEY
9 - PICKUP_MINE_INACTIVE
10 - PICKUP_MINE_ARMED
11 - PICKUP_NAUTICAL_MINE_INACTIVE
12 - PICKUP_NAUTICAL_MINE_ARMED
13 - PICKUP_FLOATINGPACKAGE
14 - PICKUP_FLOATINGPACKAGE_FLOATING
15 - PICKUP_ON_STREET_SLOW
16 - PICKUP_ASSET_REVENUE
17 - PICKUP_PROPERTY_LOCKED
18 - PICKUP_PROPERTY_FORSALE
19 - PICKUP_MONEY_DOESNTDISAPPEAR
20 - PICKUP_SNAPSHOT
21 - PICKUP_2P
22 - PICKUP_ONCE_FOR_MISSION
Parameters (v2)1) Model (Integer) (MODEL)
2) Integer (INT)
3) X Coord (Float) (FLOAT)
4) Y Coord (Float) (FLOAT)
5) Z Coord (Float) (FLOAT)
6) (Returned) Pickup handle (Integer) (INT)
Gamessa vc iii
CategoryCommon, Creation, Pickup
Command Name (IV)CREATE_PICKUP
San Andreas
sascm.ini0213=6,create_pickup %1o% type %2d% at %3d% %4d% %5d% store_to %6d%
Example0213: create_pickup #INFO type 3 at 2027.77 -1420.52 16.49 store_to $PICKUP_INFO_HOSPITAL
Command NameCREATE_PICKUP
Vice City
sascm.ini0213=6,%6d% = create_pickup %1o% type %2d% at %3d% %4d% %5d%
Example0213: $110 = create_pickup #BRIBE type 15 at 393.9 -60.2 11.5
Command NameCREATE_PICKUP
GTA III
gtascm.ini0213=6,%6d% = create_pickup %1o% type %2d% at %3d% %4d% %5d%
Example0213: $98 = create_pickup #COLT45 type 6 at 1068.5 -400.7499 15.1875
Command NameCREATE_PICKUP

<< 0211

0214 >>