Jump to content

Como aser un auto que nunca estalle ?


iFoReX

Recommended Posts

@tittle , quiero aser un auto que nunca estalle :D

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...