TheDarkBlade Posted December 25, 2015 Share Posted December 25, 2015 function nitro( source, commandName ) local team = getTeamName(getPlayerTeam( thePlayer)) if (team == "Staff") then local vehicle = isPedDrivingVehicle ( source ) addVehicleUpgrade ( vehicle , 1010 ) else outputChatBox ("You are not part of staff", source ) end end addCommandHandler ("nos", nitro) [2015-12-26 01:56:07] WARNING: WRPG_nos\nos.lua:2: Bad argument @ 'getPlayerTeam' [Expected player at argument 1, got nil] [2015-12-26 01:56:07] WARNING: WRPG_nos\nos.lua:2: Bad argument @ 'getTeamName' [Expected team at argument 1, got boolean] Link to comment
starksZ Posted December 26, 2015 Share Posted December 26, 2015 function nitro( source, commandName ) local team = getTeamName(getPlayerTeam( source)) -- if (team == "Staff") then local vehicle = isPedDrivingVehicle ( source ) addVehicleUpgrade ( vehicle , 1010 ) else outputChatBox ("You are not part of staff", source ) end end addCommandHandler ("nos", nitro) 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