theVehicle = { }
function admt ( thePlayer )
if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then
local x, y, z = getElementPosition ( thePlayer )
local rx, ry, rz = getElementRotation ( thePlayer )
theVehicle [ thePlayer ] = createVehicle ( 526, x, y, z, rx, ry, rz, "Staff Car" )
local handlingTable = getVehicleHandling ( theVehicle [ thePlayer ] )
warpPedIntoVehicle ( thePlayer, theVehicle [ thePlayer ] )
local newVelocity = ( handlingTable [ "maxVelocity" ] + ( handlingTable [ "maxVelocity" ] / 100 * 40 ) )
setVehicleHandling ( theVehicle [ thePlayer ], "numberOfGears", 5 )
setVehicleHandling ( theVehicle [ thePlayer ], "driveType", 'awd' )
setVehicleHandling ( theVehicle [ thePlayer ], "maxVelocity", newVelocity )
setVehicleHandling ( theVehicle [ thePlayer ], "engineAcceleration", handlingTable [ "engineAcceleration" ] +8 )
end
end
addCommandHandler ( "staffCar", admt )