TAPL Posted August 2, 2012 Share Posted August 2, 2012 dude create new file and name it 'server.lua' and add it in meta as server side. Link to comment
Jokeℝ1472771893 Posted August 2, 2012 Share Posted August 2, 2012 addEventHandler("onResourceStart", resourceRoot, function() teamAF = createTeam("Armed Forces", 40, 73, 0) setTeamFriendlyFire(teamAF, false) for i,v in ipairs(getElementsByType("player")) do if isGuestAccount(getPlayerAccount(v)) then return end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Armed Forces")) then setElementData(v, "Occupation", "Armed Forces", true) end end end ) addEvent("setAF", true) addEventHandler("setAF", root, function() setPlayerTeam(source, teamAF) setBlipColor(source, 40, 73, 0, 255) setElementModel(source, 287) setPlayerNametagColor(source, 40, 73, 0) giveWeapon(source, 3, 1) setElementData(source, "Occupation", "Armed Forces", true) outputChatBox("You have been employed as Armed Forces.", source, 0, 255, 0, false) end ) this? Link to comment
TAPL Posted August 2, 2012 Share Posted August 2, 2012 then what? Do i have to make it Instead of you to let you know what? Can't you read the event name here? triggerServerEvent("setswat",localPlayer) it's setswat i don't understand what setAF does in your code i was think you want SWAT Team but your code have Armed Forces anyway it your code? or you copy it from somewhere else? Link to comment
Jokeℝ1472771893 Posted August 2, 2012 Share Posted August 2, 2012 i need it for AF so i modify SWAT 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