Exports & Events
Open the gang laptop
lua
-- client
TriggerEvent('MOH-Spray:cl:OpenLaptop')Server permissions still apply to every protected action.
Get a gang created in MOH-Sprays
lua
-- server
local gang, reason = exports['MOH-sprays']:GetRegisteredGang('nightfall')Returns a copy of { label, grades }, or nil and a reason: invalid_name, not_ready or not_found.
Warzone robbery from your own menu
lua
-- client
if exports['MOH-sprays']:CanRobInWarzone() then
TriggerEvent('MOH-sprays:client:RobWarzonePlayer')
endCanRobInWarzone() is only a hint for showing the option. The server checks everything again.
Item use
Used by the inventory for spray items. You don't need to call it yourself.
lua
server = { export = 'MOH-sprays.useItem' }