Search the Community
Showing results for tags 'onresourcestart'.
-
Olá estou querendo fazer que o dxDrawLine3D aparecer após ligar o script tentei de uma forma e nao consigui é a primeira vez mexendo com o dxDraw fico agradecido a quem me ajuda function lineaeropuerto() dxDrawLine3D(1492.86328125, 1191.3876953125, 10, 1492.86328125, 1697.3671875, 10, tocolor(0, 255, 0, 255), 25)--verde dxDrawLine3D(1477.4365234375, 1223.2587890625, 10, 1477.4365234375, 1697.3671875, 10, tocolor(255, 0, 0, 255), 25)--rojo dxDrawLine3D(1462.0029296875, 1191.3876953125, 10, 1462.0029296875, 1697.3671875, 10, tocolor(0, 255, 0, 255), 25)--verde end addEventHandler("onClientRender", root, lineaeropuerto)
-
Hello I'm creating a script that will trigger an event if a resource started. Serverside addEventHandler("onResourceStart", resourceRoot, function() local accResource = getResourceFromName("accounts") if (accResource) then outputServerLog("Initializing account resource.") startResource(accResource) -- start another res here else shutdown("Didn't find a required resource 'accounts' from the server. Shutting down...") end end ) Clientside function initStartup(resource) --outputChatBox( getResourceName( resource ) ) if (getResourceName(resource) == "accounts") then triggerEvent("accounts:initStartup", localPlayer) end end end addEventHandler("onClientResourceStart", root, initStartup) The problem is on the clientside, the 'accounts' resource isn't started. But, in server the 'accounts' resource has been started. So i cant trigger the "accounts:initStartup" event. I have no idea why, so maybe someone can help me, thanks
- 5 replies
-
- resource
- onclientresourcestart
-
(and 1 more)
Tagged with: