If trailer is attached
#1

Hey there again. for my script I need a truck to enter a checkpoint with a trailer attached,

How do I make it so that it only registeres when U have a trailer attached?
Reply
#2

https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle
Reply
#3

https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle

pawn Code:
new veh = GetPlayerVehicleID(playerid);
if(IsTrailerAttachedToVehicle(veh))
{
    //They have a trailer
}else{
    //They don't have a trailer
}
Edit: Too Late :3
Reply
#4

omg, why did I not think of wiki.sa-mp.com ..

Anyway, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)