iFoReX Posted April 14, 2012 Share Posted April 14, 2012 @tittle , quiero aser un auto que nunca estalle me ayudarian con la function Link to comment
Alexs Posted April 14, 2012 Share Posted April 14, 2012 @tittle , quiero aser un auto que nunca estalle me ayudarian con la function Server Side: local vehs = getElementsByType("vehicle") for key, val in ipairs(vehs) do setVehicleDamageProof(val, true) end addEvent("onVehicleSpawn") addEventHandler("onVehicleSpawn", getRootElement(), function() setVehicleDamageProof(source, true) end) setTimer(function() local vehs = getElementsByType('vehicle') for key,val in ipairs(vehs) do local ed = getElementData(val, "spawnedEventTriggered") if (ed ~= true) then setElementData(val, "spawnedEventTriggered", true) triggerEvent("onVehicleSpawn", val) end end end, 500, 0) PD: Esta en la comunidad se llama proof Link to comment
iFoReX Posted April 14, 2012 Author Share Posted April 14, 2012 y como lo aria para un vehiculo en espesifico ? Link to comment
Renkon Posted April 14, 2012 Share Posted April 14, 2012 setVehicleDamageProof ( vehicle theVehicle, bool damageProof ) Link to comment
Alexs Posted April 14, 2012 Share Posted April 14, 2012 y como lo aria para un vehiculo en espesifico ? setVehicleDamageProof ( vehiculo, true ) getElementByID --Tambien puedes usarlo Link to comment
Recommended Posts