Jump to content

QUERO QUE ESSES 2 ID DE VEICULO NAO FICA PROCURADO QUANDO PEGA O CARRO SEM ACL AJUDA


Recommended Posts

 

QUERO QUE ESSES 2 ID DE VEICULO NAO FICA PROCURADO QUANDO PEGA O CARRO SEM ACL AJUDA

ACL = "Admin"

function giveLevelOnEnterVehicle(source)
    local accName = getAccountName(getPlayerAccount(source))
    if (isObjectInACLGroup("user." .. accName, aclGetGroup(ACL))) then
        outputChatBox("", source, 255, 255, 255, true)
    else
        local id = getElementModel(source)
        if id == 411 or id == 468 then
            outputChatBox("", source, 255, 255, 255, true)
            return
        end
        if getPlayerWantedLevel(source) < 6 then
            setPlayerWantedLevel(source, getPlayerWantedLevel(source) + 1)
        end
        outputChatBox("", source, 255, 255, 255, true)
    end
end
addEventHandler("onVehicleEnter", getRootElement(), giveLevelOnEnterVehicle)

 

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...