> For the complete documentation index, see [llms.txt](https://nuno-radio-man.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nuno-radio-man.gitbook.io/docs/documentation/robbery/robbery-events.md).

# Robbery Events

Docs for some Robbery Events

Here is the official documentation for some Robbery Events

#### Check if Robbery is Active

```lua
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

```lua
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

```lua
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)
```

***
