Commands#
This section lists all available commands included in the script. Each command is designed to simplify administration, player interaction, or debugging tasks. You’ll find detailed descriptions, usage examples, and permission requirements to help you manage and customize your server efficiently.
Command | Description |
| Command to open the creation menu. |
| Command to open the doctors radial menu. |
| Command to revive players, must give the id. |
| Exclusive command to cure people, it is a custom command due to ESX or QB dependencies. |
Client Exports#
This section provides all available client exports for the script. These functions allow you to interact directly with the system from the client side, enabling custom features, UI interactions, and integrations with other resources. Each export includes a short description and usage example for easy implementation.
isDead
local isDead = LocalPlayer.state.dead
print(isDead)
-- Possible values:
-- "dead"
-- "lastStand"
-- nilThis export allows you to check the current death state of the local player. It can be used to block actions, disable menus, trigger effects, or create custom logic depending on whether the player is alive, downed, or fully dead.
Server Exports#
This section provides all available server exports for the script. These functions allow developers to interact with the system from the server side, manage data, trigger actions, and integrate with other resources. Each export includes a clear description and a practical example to simplify its implementation.
isDead
local isDead = Player(source).state.dead
print(isDead)
-- Possible values:
-- "dead"
-- "lastStand"
-- nilPractical Example:
local state = Player(source).state.dead
if state == 'dead' or state == 'lastStand' then
print('Player is incapacitated')
return
endThis export allows you to verify the death state of a player directly from the server side using the player state bag. It’s useful for restricting gameplay actions, validating interactions, or synchronizing systems while the player is incapacitated.
ambulance:revivePlayer
TriggerClientEvent('ambulance:revivePlayer', source)This event instantly revives a player from the server side. It bypasses the normal respawn or hospital flow, making it useful for admin tools, jobs, events, or custom gameplay systems.
ambulance:healPlayer
-- Fully heal and revive the player without notification
TriggerClientEvent('ambulance:healPlayer', source, true, true)
-- Parameters:
-- source = player id
-- first boolean:
-- true = full heal + revive
-- false = partial heal
--
-- second boolean:
-- true = disable notification
-- false = show notificationThis event allows you to heal a player from the server side. You can choose between full healing, revive support, and whether notifications should be displayed to the player.



