A list of client side events you can use in your scripts.
These events are part of FiveM and do not require any resource.
All entities receiving/emitting the event, can be empty.
Entity the event is related to.
Extra event data.
An event that is triggered when an entity is locally damaged.
The entity which is damaged, or 0 if none.
The damaging entity, or 0 if none.
The hash of the weapon inflicting damage.
The base amount of damage inflicted, discounting any modifiers.
An event that is triggered when the game triggers an internal network event.
The name of the triggered event.
The type-specific event data.
An event triggered when the game completes (re)connecting to a Mumble server.
The address of the Mumble server connected to.
Is this a reconnection to a Mumble server.
An event triggered when the game disconnects from a Mumble server without being reconnected.
The address of the Mumble server disconnected from.
An event that is queued after a resource has started.
The name of the resource that has started.
An event that is triggered after a resource has stopped.
The name of the resource that has stopped.
An event that is triggered immediately when a resource has started.
The name of the resource that just started.
An event that is triggered when a resource is trying to start.
This can be canceled to prevent the resource from starting.
The name of the resource that is trying to start.
An event that is triggered immediately when a resource is stopping.
The name of the resource that is stopping.
An event that is triggered when a ped is being created by the game population system. The event can be canceled to stop creating the ped.
The X position the ped is trying to spawn at.
The Y position.
The Z position.
The intended model.
Functions to override position or model.
Sets the model of the created ped.
The model hash or name of the target ped model.
Sets the position of the created ped.
The X position the ped will spawn at.
The Y position.
The Z position.
These events are part of the spawnmanager resource.
These events are part of the mapmanager resource.
These events are part of the baseevents resource.
These events are part of the sessionmanager resource.
These events are part of the chat resource.
An event that is triggered when the game triggers an internal network event. CEventName can be any event name that GTA 5 throws, e.g.: "CEventShockingCarCrash". see: https://docs.fivem.net/docs/game-references/game-events/ for a list of known events.