Skip to content

Stop Stick

Configuration

Everything is in lwk_stopstick/config.lua. Restart the resource after a change.

Access

Config.Framework 'auto' | 'qb' | 'esx' | 'standalone' (default: 'auto')
'auto' picks qbx_core, then qb-core, then es_extended, then standalone.

Config.Jobs table (default: { police = true, sheriff = true, state = true })
Jobs that may use it on qb or esx. An empty table lets anyone.

Config.Ace string | false (default: false)
Standalone: an ace needed to use it, e.g. 'lwk_stopstick.use'. false lets anyone.

Supply

Config.Source 'vehicle' | 'item' | 'free' | 'auto' (default: 'vehicle')
Where sticks come from. See Overview.

Config.Item string (default: 'stopstick')
The inventory item name.

Config.PerVehicle number (default: 2)
Sticks each vehicle carries in vehicle mode.

Config.Vehicles string[] (default: {})
Models that carry sticks, e.g. { 'police', 'police3' }. Empty means any emergency-class vehicle.

Keys

Config.Keys table

FieldDefaultWhat it does
use'G'Carrying: throw. Holding the cord: yank
release'X'Let go of the cord
take''Take one out / put it away. Empty: no default key, /stopstick still works

Throwing and the cord

OptionDefaultWhat it does
Config.ThrowMin2.5Closest throw, metres
Config.ThrowRange9.0Furthest throw, metres
Config.CordLength24.4Metres of cord (80 ft). Walking further lets go
Config.YankSpeed16.0m/s the stick shoots toward you when the cord goes taut
Config.YankDistance12.0Most one yank brings it in, metres
Config.MinDistance1.5A yank stops this far from you, metres

Tyres and cleanup

OptionDefaultWhat it does
Config.BurstToRimfalsefalse: instantly flat but drivable. true: straight onto the rim
Config.HitWidth0.18Metres either side of the stick's line that count as running over it
Config.Despawn900Seconds a stick nobody holds stays on the road. 0 keeps it forever
Config.DrawDistance100.0Metres the sticks are drawn from

Text

Config.Text table
Every message the player sees, for translating or rewording. %s and %d are filled in: the hit message is '~g~Stop Stick hit!~s~ %s, %d tyre%s' (vehicle name, tyre count, plural s).

Models

Config.Props, Config.Anim, Config.Attach, Config.CordExit and Config.HalfLength come from the model and animation build. Leave them alone unless you rebuild the models; the Blender build scripts are in models/.

Debug

Config.Debug boolean (default: false)
F8 logs, and draws each stick's hit line and the wheel sweeps of vehicles near it.