Jump to content

Help MTA Script


Jamie_Mews

Recommended Posts

addCommandHandler( "mend", 
function( thePlayer, commandName, who ) 
if exports.players:isLoggedIn( thePlayer ) then 
local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( thePlayer, 3 ) 
if inPD and factionTag then 
*************** ( getPlayerFromName(who), 100 ) 
else 
outputChatBox( "(( You are not in a Government faction. ))", thePlayer, 255, 0, 0 ) 
end 
end 
end 
) 

Im not sure what i should put here. im trying to mend the car that the person is in. i know there are better ways to make a car repair but this is more simple.

Link to comment

You want to repair the vehicle? if so,

addCommandHandler( "mend", 
function( thePlayer, commandName, who ) 
if exports.players:isLoggedIn( thePlayer ) then 
local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( thePlayer, 3 ) 
if inPD and factionTag then 
fixVehicle(getPedOccupiedVehicle(getPlayerFromName(who))) 
else 
outputChatBox( "(( You are not in a Government faction. ))", thePlayer, 255, 0, 0 ) 
end 
end 
end 
) 

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