zydrec-robbery-lib
Installation
Keep the resource folder name as:Configuration
Configuration is located in:ServerConfig.Enabled = false, the module does not register exports, events, or cabinet state.
Set:
Usage
Example smash flow:Exports
getNearestCabinetId
Returns the nearest cabinet within10.0 units.
Returns:
getNearestCabinetIdFromCoords
Accepts:vector3vector4- Table containing
x,y, andz
maxDistance defaults to 10.0.
Returns:
canSmashCabinet
Returnstrue when the player can smash the specified cabinet.
Checks:
- Valid player ped
- Valid cabinet
- Cabinet is intact
- Distance validation
- Weapon validation (if enabled)
smashCabinet
Returns:playAnimation is enabled, the server waits for the client animation flow to complete before returning a result.
