Brad96 Posted September 11, 2013 Share Posted September 11, 2013 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
Recommended Posts