CityRP Documentation Repository

core.plugins.vehicles.sv_towtruck

Towtruck Modules (Serverside)

Functions

Serverchangeropelen(veh, change)Source ☍

Change the length of a towtruck's rope.

Parameters

  • vehanyThe towtruck.
  • changeanyThe amount to change by.
ServerINVENTORY_DoVehicleWinches(ply) → booleanSource ☍

Function to attach a winch to the vehicle the player is looking at.

Parameters

  • plyanyThe player requesting the winch.

Returns

  1. boolean
Serverspawntowsystem(ply, veh)Source ☍

Spawn a winch system on a tow truck when spawned.

Parameters

  • plyanyThe player spawning the vehicle.
  • vehanyThe vehicle entity.