detect OnPlayerPickUpPickup on vehicle
# support-forum
c
there is a way to detect to when player get on a pickup on vehicle? i did it onfoot, and it save me a lot of cpu, because now when i press a command or a key it not loop the whole houses,bizz system but there are commands like repair vehicle in a bizz that u press it in vehicle is anybody knows?
c
Yes, you can do it. Just use a proper pickup type which can be picked up in vehicle. Check the documentation to find it faster.
c
my bad, there is a type for that, thank you
one question: the type 14 is only for vehicles and the type 1 is only to onfoot if i want both what should i do? i've created two pickups in the same places, exacly equal with different type, is that the best way?
c
I thought there was one "universal" type for them to be picked up both onfoot and in vehicle. If you tried all the documented ones and didn't found any similar, then probably your current solution can be ok.
p
u can make command for it and loop checking that IsPlayerInRangeOfPoint of pickup positions or u can make dynamicracecheckpoint