DetachTrailerFromVehicle Sk
From SA-MP Wiki
Description:
Odpojí vozík od auta, ak je nejaký pripojený.
(vehicleid)
vehicleid | ID vozidla, od ktorého chcete odpojiť vozík. |
Return Values:
This function does not return any specific values.
public OnPlayerCommandText(playerid, cmdtext[]) { // Nasledujúci script spôsobí, že ak zadáte príkaz /odpoj, z auta v ktorom sedíte sa odpojí vozík. if(strcmp(cmdtext, "/odpoj", true) == 0) { DetachTrailerFromVehicle(GetPlayerVehicleID(playerid)); return 1; } return 0; }
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.
- IsTrailerAttachedToVehicle: Check if a trailer is attached to a vehicle.
- GetVehicleTrailer: Check what trailer a vehicle is pulling.