> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oxpher.wtf/llms.txt
> Use this file to discover all available pages before exploring further.

# 🌐 | Events

> Safely trigger most server or client events without ban risk.

> [!WARNING]
>
> We attempt to making calling as safe as possible. This does not mean we guarantee 100% ban protection. Certain events may still not run due to some anticheats heavily safe guarding exploitable events.

## Client Events

```lua theme={null}
OxpherAPI.TriggerEvent(eventName, ...)
```

## Server Events

```lua theme={null}
OxpherAPI.TriggerServerEvent(eventName, ...)
```

## Parameters

* `eventName` (string): the event to trigger
* `...` (any): arguments passed with it

## Returns

`true` when the event was sent. `false` when the event failed to send.

## Examples

```lua theme={null}
OxpherAPI.TriggerEvent("oxpher:system:revive")

local success = OxpherAPI.TriggerServerEvent("oxpher:inventory:addItem", "gem", 999)
if not success then
    OxpherAPI.Message.Error("Event failed to be sent.")
end
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.