pageclient

๐Ÿง  Client-Side Exports & Events โ€“ GRP AI Doctor

This section provides all client-side functions and events you can use to interact with the AI Doctor System from your own scripts.


๐Ÿš€ Client-Side Exports

Use these when you want to trigger EMS actions directly from a client script.

-- ๐Ÿ“ฆ Open the AI EMS menu
local success = exports['grp_aidoc']:OpenEMSMenu()
-- Returns: true if the menu opened successfully, false otherwise
-- ๐Ÿš Call a specific EMS vehicle type
local success = exports['grp_aidoc']:CallSpecificEMS('heli') -- Options: 'car', 'boat', 'heli'
-- Returns: true if the EMS was successfully requested

๐ŸŽฎ Client-Side Events

These can be triggered from any client script or external resource.

-- ๐Ÿงญ Open the AI EMS menu via event
TriggerEvent('grp_aidoc:client:OpenEMSMenu')
-- ๐Ÿšจ Call a specific EMS vehicle type via event
TriggerEvent('grp_aidoc:client:CallSpecificEMS', 'car') -- Options: 'car', 'boat', 'heli'

Last updated