Framework

Modify the framework that your server environment uses

-- Framework: qbcore, esx
Config.Framework = "qbcore"

Change the resource name if you have changed the default resource name of the framework. Leave false if you have not changed the frameworks resource name

-- Framework resource name (if you changed the resource names of qbcore or esx, leave false to use default)
Config.CustomFrameworkName = false

Change the frameworks default event names, leave them false if you have not changed them

-- Framework event names (if you changed the event names of qbcore or esx, leave false to use default)
Config.OnPlayerLogin = false
Config.OnPlayerLogout = false
Config.OnJobUpdate = false

Enable/Disable standalone tablet UI. Default to open is "/truckertablet". You can however modify the "TabletItemName" which would then remove the command and register it as a item specific to your framework

-- Standalone Tablet (if you are using standalone tablet, setting to true will enable the "/truckertablet" command)
Config.EnableStandaloneTablet = true

-- Tablet item name (if you are using standalone tablet, setting to false will enable the "/truckertablet" command)
Config.TabletItemName = false

Enable/Disable built in support for LB-Phone and/or LB-Tablet. Enabling this would auto install the app into the phone.

Enable/Disable built in support for Quasar Smartphone Pro. Enabling this would auto install the app into the phone. (Experimental)

Change the frequency in which the LB-Phone app and standalone tablet refresh job data. I suggest keeping this value high. Setting it too low could create performance issues

Require a job to perform the assets functions such as getting a job, renting trucks, etc. You can change the job name to whatever you'd like or set to false to disable the requirement


Third eye

Configure your frameworks targeting system, or set to false to disable it. Disabling it will fall back to the classic help text message in the top left of the screen. You can also change the resource name if you've changed the default name of the targeting resource you've configured


NUI Text & Keybind

You can disable the the nui text from ox_lib to enable the classic GTA help message. You can adjust the position and change the interact keybind for load/unload mechanics


CB Radio

Enable/Disable "CB" radio functionality. (Upon entering a vehicle while permissible via job permissions a player will be auto connected to a radio channel with other players on the job. You can modify the connect and disconnect functions in the client/edit.lua file.)

Change the default "CB" radio channel number. You can also enable/disable vehicle class restrictions that the radios will work in. You can even change which vehicle classes are whitelisted.


Blip Settings

Change the blip and route colors that appear on the minimap while performing the various tasks

Change the blip settings for the trucking warehouse. It is auto displayed on the map when a player is on the job you specified otherwise permissible and removed when not. Same with the "work" ped that spawns inside of the warehouse (break room)


Secure Vehicles

If you plan on spawning vehicles such as the ones default for the military cargo job that you DO NOT want players in, you can disable the ability for a player to enter these vehicles. Keys will not be registered for them, they will be locked with entry disabled, and in the event that a player does manage to enter they will be forced to exit instantly.

Enable/disable the "NeverAllowEntry" check when on the job only. Disabling this will run the check no matter if a player is on or off the job. (I recommend leaving this false... there's no extra performance impact)

Adjust the police requirement and which jobs are police. (The function to check players and their jobs can be modified in the server/edit.lua file.)


Timeout

Change the amount of time before a started job is auto canceled even if a player hasn't finished it. (The trailer and any job related objects are de-spawned when a job is canceled)


Attach Any Trailer

Enable/disabled the ability to attach any compatible trailer to any compatible truck. I recommend keeping this true for full compatibility with addon trucks and trailers. You can change the keybind and adjust the distance in which it will attach a trailer.

Enable/disable truck/trailer restrictions. Sometimes addon trucks with the ability to tow goosenecks will be able to attach job trailers. Enabling this (I recommend) will burst the tires and slowly kill the engine if they try to haul a trailer with a truck that isnt specified in the whitelist.


Forced Heading

Enable/Disable load and drop off trailer heading. This means a player will not be able to drop the trailer unless it is facing the direction (heading) configured in its job locations


Rentals

Enable/Disable the truck rental system. Add/Remove trucks, set their name, spawn model, and a price (refunded when they return the truck). You can disable this system if you want to your players to own their own trucks with your frameworks garage system.


Load / Drop Zone

Enable/Disable zone debugging (I recommend leaving this false unless testing as it will create a small performance impact to draw the zone borders)

Adjust zone size and blip color


Reputation

Enable/Disable the reputation system. (Auto disabled if you do not have a database resource. The table is auto created on resource start)

Adjust the max amount of reputation a player can have.

Adjust the min, max of reputation removed when a player fails the job.

Adjust the amount of reputation earned when a legal job is completed, can also be min, max.

Adjust the amount of reputation earned when an illegal job is completed, can also be min, max.

Adjust bonus pay a player is given based on their rep. (I recommend keeping this low) bonus = payout*(reputation/max reputation) * (bonus pay setting/100)


Jobs

This asset comes with a dozen jobs already configured and ready to play right away. You can change them and/or add more.

  • name: Name of the job.

  • description: Description of the job.

  • icon: Font-Awesome icon.

  • requiredReputation: Amount of required player reputation to start the job.

  • cooldown: Amount of time after the job is on cooldown for after the previous worker picked up the load.

  • illegal: Specifies whether or not the job is illegal or not.

  • highlight: Adds a blue highlight shadow around objects and cars that need to be loaded (Is disabled by default for peds).

  • load: Contains all the information regarding the jobs load.

    • peds: Enable/Disable whether or not the load is peds.

    • vehicles: Enable/Disable whether or not the load is vehicles.

    • limit: Overrides the calculation made by the spawn points, and attachment points.

    • modelDist: The distance to check between the loader/load, load/dummy, load/attachment.

    • model: Models to spawn (can have multiple and they'll be selected randomly).

    • coords: Table of coords where the load can spawn (selected randomly).

  • trailer: Information about the trailer.

    • model: The model of the trailer to spawn.

    • exactPos: Force and freeze the trailer into position when dropped at the loading spot.

    • loadCoords: The location to drop the trailer to load it.

    • coords: The location where the trailer can spawn. (can be multiple locations, one is selected randomly).

    • dummy: The offset/rotation where a shadowed dummy object will be attached (this is where you will bring the load to load it onto the trailer. if set to false, it will just use the attachment points configured).

    • attachpoint: The offset/rotation locations where the load will be attached on the trailer. This will also determine the max load size unless overridden by the limit variable.

    • objects: Override the offset/rotation of specific objects on the trailer

    • doors: These are the door id's that will be opened when dropped at the loading zone, and closed when the trailers load is met.

    • spawnExtras: These are the "extras" id's the trailer will be spawned with.

    • doneExtras: These are the "extras" id's that will be loaded when the trailer has been loaded.

  • loader: This is information about the loader for the specific job. Can be disabled if you want the player to manually load onto the trailer (car trailer as an example).

    • model: The model hash name of the vehicle to spawn.

    • coords: The location of where to spawn the loader.

    • autopilot: Enable/Disable the autopilot feature of the cargobob (I recommend you let a ped do this, it would be extremely difficult for a player to use a cargobob to load a vehicle).

    • offset: The offset/rotation the load will attach to the loader for transport.

  • dropoff: The final destination for the job. You can add as many drop off locations that you want and you can adjust the payout of each drop off. You can use a whole number or {min, max}. Drop off locations are selected randomly each job.

Last updated