-- Server Side And I Add The Tag With It To Appear for all players! --
addEvent("Setting",true)
addEventHandler("Setting",root,
function( )
setPlayerNametagText ( source, '[COP]' .. getPlayerName ( source ) )
giveWeapon ( source , 3 , 1 )
setPlayerTeam ( source , Police )
setElementModel( source,280 )
end
)
-- Client Side --
local playerWhoUses = getLocalPlayer()
addEventHandler ( 'onClientGUIClick', GUIEditor.button[1],
function( )
if ( getPlayerWantedLevel ( ) == 0 ) then
setElementData ( playerWhoUses, 'job', 'police' )
triggerServerEvent("Setting",getLocalPlayer())
outputChatBox ( '', 0, 0, 255, false )
outputChatBox ( '', 0, 0, 255, false )
outputChatBox ( '', 0, 0, 255, false )
else
outputChatBox ( '', 0, 0, 255, false )
end
end,false
)