NeoGM Posted December 28, 2019 Share Posted December 28, 2019 Estou tendo problemas, meu veiculo quebra, chega ao ponto de fumaçar! mas quando saio e entro nele novamente volta a funcionar. Queria resolver este problema! Link to comment
HiqueC Posted December 29, 2019 Share Posted December 29, 2019 (edited) Tente com esse pra ver se funciona function DesligarAndLigar ( playerSource ) if math.floor ( getElementHealth( source ) + 0.5 ) > 350 then setVehicleEngineState( source, false ) -- Quebrado --outputChatBox("Esse Veiculo está Quebrado, Chame Por um Mecanico digitando /Mecanicos", playerSource, 255, 255, 255, true) end end addEventHandler ( "onVehicleEnter", root, DesligarAndLigar ) addEventHandler("onVehicleDamage", getRootElement(),function(loss) if getElementType ( source ) == "vehicle" then if not isVehicleDamageProof(source) then local HP = getElementHealth(source)-loss if HP <= 350 then HP = 350 setElementHealth(source,350) setVehicleEngineState(source,false) setVehicleDamageProof(source,true) if isVehicleBlown(source) then fixVehicle(source) setElementHealth(source,350) setVehicleDamageProof(source,true) end end end end end) Edited December 29, 2019 by HiqueC Link to comment
DNL291 Posted December 31, 2019 Share Posted December 31, 2019 Seu problema tem a ver com um script, você precisa mostrar seu código aqui e não esperar que outros adivinhem de qual resource se trata. 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