ODutii Posted August 8, 2019 Share Posted August 8, 2019 Estou com um problema, ignorem o setElementVisible Configurei para quando sair do servidor o veículo vai ser destroído, so que quando saí o veículo ainda fica la, me ajudem. function leaveserver12(player) if vehsedex[player] and isElement(vehsedex[player]) then destroyElement(vehsedex[player]) guardou = false setElementVisibleTo(marca1, player, false) setElementVisibleTo(marca1b, player, false) setElementVisibleTo(marca2, player, false) setElementVisibleTo(marca2b, player, false) setElementVisibleTo(marca3, player, false) setElementVisibleTo(marca3b, player, false) setElementVisibleTo(marca4, player, false) setElementVisibleTo(marca4b, player, false) setElementVisibleTo(marca5, player, false) setElementVisibleTo(marca5b, player, false) setElementVisibleTo(carregarsedex, player, false) mm1 = false mm2 = false mm3 = false mm4 = false mm5 = false carregar = false painelsedex = false end end addEventHandler("onPlayerQuit", root, leaveserver12) Podem ignorar os mm, o foco mesmo é o vehsedex Link to comment
DNL291 Posted August 8, 2019 Share Posted August 8, 2019 Remova o parâmetro player da função e use source em vez de player. 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