GetVehicleTrailer
From SA-MP Wiki
(Difference between revisions)
Revision as of 17:56, 2 February 2014 Connor Mead (Talk | contribs) ← Previous diff |
Revision as of 17:56, 2 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 20: | Line 20: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
- | [[fr:GetVehicleTrailer_FR]] | + | [[fr:GetVehicleTrailer]] |
Revision as of 17:56, 2 February 2014
Description:
Get the ID of the trailer attached to a vehicle.
(vehicleid)
vehicleid | The ID of the vehicle to get the trailer of. |
Return Values:
The vehicle ID of the trailer or 0 if no trailer is attached.
if(GetVehicleTrailer(GetPlayerVehicleID(playerid))) SendClientMessage(playerid, 0xFFFFFFAA, "You are currently towing a trailer."); else SendClientMessage(playerid, 0xFFFFFFAA, "You are not towing a trailer.");
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- AttachTrailerToVehicle: Attach a trailer to a vehicle.
- DetachTrailerFromVehicle: Detach a trailer from a vehicle.
- IsTrailerAttachedToVehicle: Check if a trailer is attached to a vehicle.