Jump to content

Eu to precisando de um Script que destrói todos os carros sem players dentro


Recommended Posts

addCommandHandler("limpar", function()
    for index, vehicle in ipairs(getElementsByType("vehicle")) do
        local pessoa = getVehicleOccupant(vehicle)
        if not pessoa then
            destroyElement(vehicle)
        end
    end
end)

Sistema Simples Deletando todos os Veiculos Que Não Estiverem com Pessoas Dentro.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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