Framework
Add your framework export to the top of this file.
local Core = exports.vorp_core:GetCore()Notifications
Notification that appears on the right-middle of the screen in vorp framework.
--- Alert (right middle)
--- @param message string
--- @param mType string
function Notify(message, mType)
Core.NotifyAvanced(message, 'BLIPS', 'blip_proc_bank', (mType == 'error' and 'COLOR_RED' or 'COLOR_GREEN'), 1500)
endNotification that appears on the top middle of the screen in vorp framework.
--- Notify (top middle)
--- @param title string
--- @param subtitle string
function NotifyTop(title, subtitle)
Core.NotifySimpleTop(title, subtitle, 4000)
endSession
This returns whether or not the player is logged into the framework. Can just return true if this doesn't apply to your framework.
Bandana
This function checks to see if a player is wearing a bandanna. Vorp using a localplayer state. You can modify to your servers needs. Always returns true if the requirement is set to false.
Bank Hours
This function checks if a bank is open or not based on the settings in the config.lua
Skill Checks
Various skill checks used within this resource. One triggered when planting the explosive device and the other used when cracking open a vault inside of the main vault.
Explosive device skill check. (Triggers instant explosion upon failure)
Safe crack skill check.
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.
Ped Spawned
This function is triggered when each ped is pawned (if enabled) during the robbery. You can use this to set the health, armor and accuracy.
Last updated