📓Robbery Events

Docs for some Robbery Events

Here is the official documentation for some Robbery Events

Check if Robbery is Active

THIS IS CLIENT SIDE
local data = {
    robberyindex = 0, -- this is the index of the robbery
}
TriggerEvent(resource..":CheckRobberyActivity_c",data,function(status)
    if status == true then
        print("Robbery is Active")
    else
        print("Robbery is Non Active")
    end
end)

---------------------------------------------------------------//---------------------------------------------------------------

THIS IS SERVER SIDE
local data = {
    robberyindex = 0, -- this is the index of the robbery
}
TriggerEvent(resource..":CheckRobberyActivity_s",data,function(status)
    if status == true then
        print("Robbery is Active")
    else
        print("Robbery is Non Active")
    end
end)

Check if Robbery is Disabled

THIS IS CLIENT SIDE
local data = {
    robberyindex = 0, -- this is the index of the robbery
}
TriggerEvent(resource..":CheckRobberyStatus_c",data,function(status)
    if status == true then
        print("Robbery is Enabled")
    else
        print("Robbery is Disabled")
    end
end)

---------------------------------------------------------------//---------------------------------------------------------------

THIS IS SERVER SIDE
local data = {
    robberyindex = 0, -- this is the index of the robbery
}
TriggerEvent(resource..":CheckRobberyStatus_s",data,function(status)
    if status == true then
        print("Robbery is Enabled")
    else
        print("Robbery is Disabled")
    end
end)

Enable or Disable Robbery

THIS IS CLIENT SIDE
local data = {
    robberyindex = 0, -- this is the index of the robbery you want to enable or disable
    status = false, -- this is the value that will change the robbery status | "true" is enabled | "false" is disabled
}
TriggerServerEvent(resource..":ToggleRobbery_s",data)

---------------------------------------------------------------//---------------------------------------------------------------

THIS IS SERVER SIDE
local data = {
    robberyindex = 0, -- this is the index of the robbery you want to enable or disable
    status = false, -- this is the value that will change the robbery status | "true" is enabled | "false" is disabled
}
TriggerEvent(resource..":ToggleRobbery_s",data)

Last updated