[HELP] Taking a pickup when in a vehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Taking a pickup when in a vehicle (
/showthread.php?tid=177273)
[HELP] Taking a pickup when in a vehicle -
RoCK'N'Rolla - 17.09.2010
hi, how can i create a pickup which is only for in vehicles? I tried to create it, but it didn't appear on an object. Need help please.
Re: [HELP] Taking a pickup when in a vehicle -
Voldemort - 17.09.2010
Use pickup type 14
Re: [HELP] Taking a pickup when in a vehicle -
RoCK'N'Rolla - 17.09.2010
i used :
CreatePickup(1239, 14, 5470.5356,1704.6692,283.6691, 0);
It didn't even appear... (It has been created on an Object created with CreateObject..)
Re: [HELP] Taking a pickup when in a vehicle -
Voldemort - 17.09.2010
use AddStaticPickup
https://sampwiki.blast.hk/wiki/PickupTypes
Re: [HELP] Taking a pickup when in a vehicle -
RoCK'N'Rolla - 17.09.2010
Static pickups are unusable in onplayerpickuppickup, so i can't.
Re: [HELP] Taking a pickup when in a vehicle -
Vince - 17.09.2010
Pickup type 14 falls through custom objects. You could try some IsPlayerInRangeOfPoint checks, though.