Dinho Posted March 7, 2019 Share Posted March 7, 2019 (edited) Não sei por que, mesmo estando em passivo ele continua podendo roubar. Alguém com capacidade de me ajudar? function CAIXA(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, roubarcofre) then if (getElementData(player, "Passivo") == true) then outputChatBox("#FF0000AVISO* #FFFFFFNesse servidor é proibido Assaltos em Modo PASSIVO", player, 255,255,255, true) else setPlayerWantedLevel(thePlayer, getPlayerWantedLevel(thePlayer) + 1) setPedAnimation(thePlayer,"bomber", "BOM_Plant_Loop", 10500, true, false, false, false) triggerClientEvent(thePlayer, "dxClient", thePlayer) setElementPosition(roubarcofre, 3099.97, -3281.69, -0.5) triggerClientEvent(root, "caixas", root, getPlayerName( thePlayer ) ) do setTimer(setElementPosition, 200000, 1, roubarcofre, 2234.76, -1666.924, 15.284 -1) local money = getPlayerMoney(thePlayer) setPlayerMoney(thePlayer, 3000+money) end end end end addCommandHandler("roubar", CAIXA) Edited March 7, 2019 by Dinho Link to comment
[M]ister Posted March 7, 2019 Share Posted March 7, 2019 Troque na linha 3 player por thePlayer, remova o do da linha 11 e um end do final. Link to comment
Dinho Posted March 7, 2019 Author Share Posted March 7, 2019 (edited) Quote WARNING: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] Alguma outra alternativa? 17 minutes ago, Dinho said: Alguma outra alternativa? Deixa, vou fazer por acl msm tá suave. Edited March 7, 2019 by Dinho Link to comment
[M]ister Posted March 7, 2019 Share Posted March 7, 2019 Mostre como ficou seu código. 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