Events
Integration into scripts
-- server.lua
TriggerClientEvent('luman-dragon:spawnDragonOrDespawnIfExists', playerId, dragonIndex)-- client.lua
AddEventHandler('luman-dragon:onMountingDragon', function(dragonIndex)
print('Mounting dragon', dragonIndex)
end)
AddEventHandler('luman-dragon:onDragonMounted', function(dragonIndex)
print('Mounted dragon', dragonIndex)
end)
AddEventHandler('luman-dragon:onUnmountingDragon', function(dragonIndex)
print('Unmounting dragon', dragonIndex)
end)
AddEventHandler('luman-dragon:onDragonUnmounted', function(dragonIndex)
print('Unmounted dragon', dragonIndex)
end)Last updated