Trailer Attachs
#1

Hi community,
Is there any way for detecting if a truck (Vehicle ID : 403) attaches a trailer (Vehicle ID : 584) ?
Reply
#2

Do you mean once he's attaching it or if he has it already attached?

PHP код:
public OnTrailerUpdate(playeridvehicleid)
{
    new 
id_veh GetPlayerVehicleID(playerid);
    if(
GetVehicleModel(id_veh) == 403 && GetVehicleTrailer(id_veh) == 584)
    {
        
// he done did it
    
}
    return 
1;

Reply
#3

PHP код:
public OnTrailerUpdate(playeridvehicleid)
{
    new 
id_veh GetPlayerVehicleID(playerid);
    if(
GetVehicleModel(id_veh) == 403 && GetVehicleTrailer(id_veh) == 584 && PlayerInfo[playerid][pJob] == 19)
    {
        
SendClientMessage(playeridCOLOR_RED"IT WORKS!");
    }
    return 
1;

I've tried something like this, but didn't work ...
Maybe I had to use AttachTrailerToVehicle but I don't know where to start ...
Reply
#4

Bump
Reply
#5

Sorry but Bump again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)