Can-Check Hooks
Hook functions that run before actions are executed. Return false to deny with an optional reason.
File Locations
Side
File
How Reason Strings Work
Server-side reasons
function CanSpawnVehicle(source, vin, garageId) if (someCondition) then return false, "noAccessToGarage" end return true end
Client-side reasons
Server-Sided Hooks
Can Lock Vehicle
Can Unlock Vehicle
Can Toggle Engine
Can Lockpick (Server)
Can Hotwire (Server)
Can Spawn Vehicle
Can Store Vehicle (Server)
Can Drive Away From Interior
Can Set New Owner
Can Transfer Garage
Can Give Temp Keys
Can Purchase Key
Can Impound Vehicle
Can Pay Impound
Can Apply Fake Plate
Can Remove Fake Plate
Can Set New Plate
Can Scratch VIN
Can Delete Scratched Vehicle
Client-Sided Hooks
Can Open Garage
Can Enter Garage Interior
Can Store Vehicle (Client)
Can Steal Temp Keys
Can Rob NPC Keys
Can Open Vehicle Management
Can Lockpick (Client)
Can Hotwire (Client)
Can Summon Vehicle
Can Open Locksmith
Common Patterns
Deny an action for a specific garage
Deny an action based on vehicle data
Gate an action behind a specific item
Deny actions during an event or condition
Last updated