magicplayerc Posted February 1, 2019 Share Posted February 1, 2019 QUERO QUE ESSES 2 ID DE VEICULO NAO FICA PROCURADO QUANDO PEGA O CARRO SEM ACL AJUDA ACL = "Admin" function giveLevelOnEnterVehicle(source) local accName = getAccountName(getPlayerAccount(source)) if (isObjectInACLGroup("user." .. accName, aclGetGroup(ACL))) then outputChatBox("", source, 255, 255, 255, true) else local id = getElementModel(source) if id == 411 or id == 468 then outputChatBox("", source, 255, 255, 255, true) return end if getPlayerWantedLevel(source) < 6 then setPlayerWantedLevel(source, getPlayerWantedLevel(source) + 1) end outputChatBox("", source, 255, 255, 255, true) end end addEventHandler("onVehicleEnter", getRootElement(), giveLevelOnEnterVehicle) Link to comment
Tommy. Posted February 1, 2019 Share Posted February 1, 2019 só tirar: if getPlayerWantedLevel (source) < 6 then setPlayerWantedLevel(source, getPlayerWantedLevel(source) + 1) end Você criou o tópico na categoria errada!Vá para: Programação em Lua 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