Jump to content

Script de mecânico


Recommended Posts

Fiz aqui rápidão para você, bom ele não repara o veículo que está na frente e sim o veículo que ele está dentro (=
 

acl = "Mecanico"

function mecRepair(source)
  if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(acl)) then
    if getPedOccupiedVehicle(source) then
      fixVehicle(getPedOccupiedVehicle(source))
    end
  end
end
addCommandHandler("reparar", mecRepair)

EDIT: i did not tested

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