Framework

Add your framework export to the top of this file.

This resource is already configured for VORP, it can be modified to whatever framework you use.

local Core = exports.vorp_core:GetCore()

Doors

IGNORE THIS IF YOU DO NOT USE GS_DOORLOCKS (or configure for your door script).

The logic within these functions uses the api documented here; https://github.com/GlitchOo/gs_doorlocks

-----------------------------------------------------------------------------------------------------
--------------------------------------- GS_DOORLOCKS API --------------------------------------------
-----------------------------------------------------------------------------------------------------

local DoorLocksAPI = nil

if IsResourceStarted('gs_doorlocks') then
    DoorLocksAPI = exports.gs_doorlocks:GetAPI()
else
    DevPrint('gs_doorlocks not started or doesnt exist.')
end

Setup Locks

This function is triggered on resource startup to create the doors and lock them.

Disable Doors

This function will disable lockpicking on the configured doors and locks them shut.

Enable Doors

This function is triggered when a robbery is started. It will make sure any open doors are locked shut and enables lockpicking.

Notifications

Notification that appears on the right-middle of the screen in vorp framework.

Permission

This function is used to check if a player has permission to reset the bank.

Remove Item

The function is used to remove the explosive device from a players inventory. If not useing any item you can just return true here.

This is configured for vorp_inventory. You can modify to use whatever inventory system you use.

Add Item

This function is used to add non currency rewards from a successful vault crack .

This is configured for vorp_inventory. You can modify to use whatever inventory system you use.

Add Currency

This function is used to give money/currency (non item) rewards from a successful vault crack.

Robbery Started

This function is triggered when a robbery is started. You can use this to trigger a police notification with whatever resource you use on your server.

Vault Explosion

This function is triggered when the main vault door has been opened. You can use this to trigger a police notification with whatever resource you use on your server.

Job Check

This function checks for on duty players based on the job requirements configured.

Last updated