githubEdit

Events

Here are a list of our client sided events! This can help you integrate with other resources. Please note, the examples below are examples. You can use these events how you wish, these are just ideas!

Client

Open tuning menu

Can be used to open the tuning menu at a specific location

-- mechanicId: string         (The mechanic id from the config)
-- mechanicLabel: string      (The label which will show in the menu)
TriggerEvent("jg-mechanic:client:open-customisation-menu", mechanicId, mechanicLabel)

Example Usage

ReigsterCommand('openmechmenu', function() -- This creates a command called openmechmenu (maybe for admins?)
    TriggerEvent("jg-mechanic:client:open-customisation-menu", 'bennys', 'bennys') -- Trigger Actual event
end, true) -- Is it locked? (https://natives.avarian.dev/?native=0x5FA79B0F&game=gta5)

Open tablet

Can be used to open the tablet

TriggerEvent("jg-mechanic:client:use-tablet")

Example usage

Open admin menu

Can be used to open the admin menu

Example Usage

Listeners

Listen to toggling of tablet being hidden

Example usage

Listen to toggling of tablet being shown

Last updated

Was this helpful?