Jump to content

Como usar getElementsByType


Brad96

Recommended Posts

como saben soy noob y quiero la forma mas facil de usar getElementsByType para este script de la wiki

function ghostmode_on() 
    local v = getPedOccupiedVehicle(localPlayer) -- Get her's Vehicle ID 
    for index,vehicle in ipairs(getElementsByType("vehicle")) do --LOOP through all Vehicles 
        setElementCollidableWith(vehicle, v, false) -- Set the Collison off with the Other vehicles. 
    end 
    outputChatBox("You are now a Ghost ",thePlayer) 
end 
addCommandHandler("ghostmode", ghostmode_on) -- Add the /ghostmode Command. 
  

tengo entendido que esa parte es la que hace que atraviese todos los autos , gracias

Link to comment
  • Recently Browsing   0 members

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