Jamie_Mews Posted February 16, 2011 Share Posted February 16, 2011 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
Castillo Posted February 16, 2011 Share Posted February 16, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now