saluta Posted July 10, 2021 Share Posted July 10, 2021 Spoiler addEventHandler("onClientPlayerQuit", resourceRoot, function(plr) setElementData(source, "graczPraca", false) setElementData(plr, "zaladowany" ,false) end) addEventHandler("onClientPlayerWasted", resourceRoot, function(plr) setElementData(source, "graczPraca", false) setElementData(plr, "zaladowany", false) outputChatBox("Отправлятесь на базу и повторите снова!", 255, 0, 0) exports.guimessages:Draw("Head to base and repeat") end) addEventHandler("onClientResourceStop", resourceRoot, function() setElementData(localPlayer, "graczPraca", false) setElementData(plr, "zaladowany", false) end) Warning: perevozcik\job_c.lua:132: Bad argument @'setElementData' [Expected element at argument 1, got nil] Link to comment
nikitafloy Posted July 10, 2021 Share Posted July 10, 2021 (edited) 2 hours ago, saluta said: setElementData(plr, "zaladowany", false) Should be: setElementData(localPlayer, "zaladowany", false) In onClientResourceStop event Edited July 10, 2021 by nikitafloy 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now