26.12.2018, 18:05
Hello guys! I want to attach pickup to a vehicle like in singleplayer mode! I couldn't find any function for that! Can you tell me can I do it and if I can- how?
Thanks!
Thanks!
The only type of pickup that can be picked up from inside a vehicle is 14 (except for special pickups such as bribes).
https://sampwiki.blast.hk/wiki/CreatePickup
Код:
The only type of pickup that can be picked up from inside a vehicle is 14 (except for special pickups such as bribes). |
SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked)
objective = 1 (Yellow arrow floating above the vehicle).
Код:
SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked) |
pvehicles[0] = AddStaticVehicle(448,2100.3450,-1784.6423,12.9960,344.8412,3,3); // pizzaboy