thunder-stall

Configuration

Learn how to use each setting present in config.lua in our script.

Important

This script controls the vehicle stall, meaning when the engine automatically shuts off after collisions and low speed. Configure carefully to avoid unwanted issues.

DebugMode

Enable or disable debug mode. Useful for testing the script without actual effects.

config.lua
DebugMode = false -- true to enable debug

MaxCollisions

Maximum number of collisions the vehicle can take before triggering a stall.

config.lua
MaxCollisions = 5 -- Maximum stalls

StallDuration

Time in milliseconds that the engine will stay off after reaching the collision limit.

config.lua
StallDuration = 3000 -- Engine off time (ms)

SpeedDrop

Minimum speed required for the stall to activate. If the vehicle is above this speed, the stall will not occur.

config.lua
SpeedDrop = 130.0 -- Minimum speed to activate the stall

SoundEffect

Name of the sound effect that will be played when the stall occurs.

config.lua
SoundEffect = "TIMER_STOP"

SoundBank

Sound bank from which the effect will be played.

config.lua
SoundBank = "HUD_MINI_GAME_SOUNDSET"

Notify

Enable or disable client notifications when a stall occurs.

config.lua
Notify = true

SendNotify

Function responsible for sending the notification. Modify according to your notification system.

config.lua
function SendNotify(Message)
    -- Implement the call to your notification script.
    -- Attention: this is called by the client, use only TriggerEvent.
    TriggerEvent("Notify", 'yellow', Message, "Stall", 3000)
end

Types

Prop

Type