Is there a way to have scripts do something on startup? REDM CFX LUA

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

By

Dragon Codes