---Client--- 
function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, frameColor) 
color = color or tocolor(255, 255, 255, 255) 
frameColor = frameColor or tocolor(0, 0, 0, 255) 
scale = scale or 1.1 
font = font or "default" 
alignX = alignX or "left" 
alignY = alignY or "top" 
clip = clip or false 
wordBreak = wordBreak or false 
postGUI = postGUI or false 
dxDrawText(message, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) 
dxDrawText(message, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) 
dxDrawText(message, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) 
dxDrawText(message, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) 
dxDrawText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) 
end 
  
addEventHandler("onClientRender", root, 
function (text) 
local myIP = getElementData(localPlayer,"IP") 
dxDrawFramedText("Player Team:"..getTeamFromName("Ballas").."  Your IP : "..(myIP or "N/A") ,860, 410, 1162, 443, tocolor(128, 0, 128, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false)  
end 
) 
  
 
  
---Server--- 
function Events( ) 
if eventName == "onResourceStart" then 
for k,v in ipairs(getElementsByType("player")) do 
setElementData(v, "IP", getPlayerIP(v)) 
end 
elseif eventName == "onPlayerJoin" then 
setElementData(source, "IP", getPlayerIP(source)) 
end 
end 
addEventHandler("onResourceStart", resourceRoot, Events) 
addEventHandler("onPlayerJoin", root, Events)