--------------------------------------------------
-- Startup ---------------------------------------
--------------------------------------------------
AddEventHandler('onResourceStart', function(resource)
if resource == GetCurrentResourceName() then
--- do something on startup
end
end)