Configuration
This page contains all information you need to configure gfg_deliveries, if you have any questions feel free to reach out to us on our discord.
Variables that are marked as (Optional) do not need to be set (but can be in the case of further customization).
Config
language
Language sets which Locale to use, you can find available locales in [gfg_deliveries/locale/], we will add more as they become available but feel free to add your own.
debug
Debug should only used in a development environment
Determines whether to send debug print statements to the client and server when using the script
enhancedDebug
Enhanced Debug should only used in a development environment
Determines whether to send enhanced debug print statements to the client and server when using the script
interactionMethod
Determines the method in which players interact. Currently supported options are: "target", "textui", "3dtext".
interactionDistance
Determines the distance from the interaction point that the interaction is activated.
truckInteractionDistance
Determines the distance from the truck bone that the interaction is available.
drawMarker
Determines 3d marker variables.
enable
= Determines whether to draw a 3d marker at the drop-off point.
type
= Determines the type of marker to draw.
scale
= Determines the scale of the marker.
color
= Determines the color and transparency of the marker.
r
= Red
g
= Green
b
= Blue
alpha
= Transparency
bob
= Determines whether the marker bobs up and down.
faceCamera
= Determines if the marker always faces the camera.
inventory
if inventory = 'custom'
the payout events in sv_customize.lua
are used.
Determines wich inventory resource to use. Currently supported options are: "ox_inventory", "qb_inventory" or "custom".
useKeys
Determines whether or not to trigger the give and remove keys function in sv_customize.lua.
Config.Defaults
Configuration for the default values used if specific variable for a delivery type are omitted.
ped
Determines default ped variables.
model
= Determines the default ped model.
scenario
= Determines the default ped scenario.
blip
Determines default blip variables.
sprite
= Determines the default blip sprite.
scale
= Determines the default blip scale.
color
= Determines the default blip color.
reward
Determines default reward variables.
type
= Determines the default reward type, supported options are "bank" and "item".
itemName
= Determines the default item reward name, only used if 'reward.type' is 'item'.
distanceMultiplier
= Determines the default distance multiplier.
boxworth
= Determines the default value for each package delivered.
amount
= Determines the default value for each stop completed.
stops
Determines default stop variables.
blip
= Determines default stop blip variables.
sprite
= Determines the default stop blip sprite.
scale
= Determines the default stop blip scale.
color
= Determines the default stop blip color.
vehicle
Determines the default vehicle variables.
bone
= Determines the default vehicle interaction bone.
Config.DeliveryTypes
Configuration for the various delivery types.
They 'key' of each entry is the name of the delivery type and needs to be unique
ped
Determines ped variables.
coords
= Determines the coords of the ped (Needs to be a vector4).
model
= Determines the ped model. (Optional)
scenario
= Determines the ped scenario. (Optional)
blip
Determines blip variables.
label
= Determines the label of the blip.
sprite
= Determines the blip sprite. (Optional)
scale
= Determines the blip scale. (Optional)
color
= Determines the blip color. (Optional)
vehicle
Determines the vehicle variables.
model
= Determines the model of vehicle to be provided (Needs to be the signed hash).
coords
= Determines the locations where vehicles will be spawned (Needs to be a vector4).
image
= Determines the image to be displayed in the menu.
bone
= Determines the vehicle interaction bone. (Optional)
boxes
Determines the amount of boxes per stop.
minAmount
= Minimum amount.
maxAmount
= Maximum amount.
reward
Determines reward variables. (Optional)
type
= Determines the reward type, supported options are "bank" and "item". (Optional)
itemName
= Determines the item reward name, only used if 'reward.type' is 'item'. (Optional)
distanceMultiplier
= Determines the distance multiplier. (Optional)
boxworth
= Determines the value for each package delivered. (Optional)
amount
= Determines the value for each stop completed. (Optional)
stops
Locations and targets need to be in the same order (1st entry in targets, is the dropoff target for the 1st entry in locations).
Determines stop variables.
minAmount
= Determines the minimum amount of stops.
maxAmount
= Determines the maximum amount of stops.
blip
= Determines stop blip variables. (Optional)
sprite
= Determines the stop blip sprite. (Optional)
scale
= Determines the stop blip scale. (Optional)
color
= Determines the stop blip color. (Optional)
locations
= Determines the stops that can be chosen for this delivery type.
targets
= Determines the drop-off targets for this delivery type.
Last updated