Page cover

πŸ›»Towing Locations

Easily add locations for towing truck rental, these can be public use or restricted by jobs in Config.Towing


  • The key is the location name and must be unique

  • The image must be a .png file present in my vehicle-images github repo (submit a PR for custom vehicles) as these are loaded dynamically from an external link

  • the prop coords and spawnCoords must be vector4 for the prop and vehicle spawn locations

  • Restrictions can be set via the jobs table

  • The offset values for the ramp object must be vector3

  • Define blacklisted vehicles from being attached by their spawn name


  • The key is the location name and must be unique

['My Towing Location Name'] = { -- the key is the location name and must be unique
        
},

  • Model is the prop model name

  • Coords must be vector4

  • Spawn coords must be vector4

  • Icon is the target icon

  • Label is the target label

  • Distance is the target distance



  • If required you can set restriction via job names to each towing location

  • The job name must be defined correctly in your jobs.lua


  • Define vehicles that can be spawned via this towing location

  • The key is the vehicle spawn name and must be in your vehicles.lua

  • The image must be a .png file present in my vehicle-images github repo (submit a PR for custom vehicles) as these are loaded dynamically from an external link

  • Define the ramp model you wish to use for the vehicle (supports custom props if required)

  • The offset must be a vec3 value

  • Define blacklisted vehicles that can not be attached to the tow truck by defining their spawn names in the black listed table


  • Below is an example of a fully finished config entry for a custom location with a job restriction and a black listed vehicle

Last updated