Hi, im newbie on LUA, im on lua programing only 2 days and in the wiki is small list of the creating PickUp and GUI. This is my code:
createPickup ( -3530, -201, 10, 3, 1277 )
function pickupUse ( thePlayer )
end
addEventHandler ( "onPickupUse", getRootElement(), pickupUse )
How to create this: If im in the pickup, show GUI with list of vehicles and buttons Spawn and Cancel.(If im pickup, im freezed) If im double clicked from the vehicle name or selected vehicle and clicked to spawn, spawn vehicle in the position and unfreeze me and respawn pickup. If im click cancel, im unfreezed and respawn pickup.
Thx
Sorry for my bad english, im slovak and im kid