yoya99 Posted October 5, 2014 Share Posted October 5, 2014 hi there i have this naMETAG resource,but i only see bthe others names....how can i make it show my own name too??? here is the resource: CODE REMOVED Link to comment
John Smith Posted October 5, 2014 Share Posted October 5, 2014 replace ( from line 136 to line 144 with:) addEventHandler('onClientResourceStart', g_Root, function() for i,player in ipairs(getElementsByType"player") do nametag.create ( player ) end end ) Link to comment
yoya99 Posted October 5, 2014 Author Share Posted October 5, 2014 thx buddy....i have the next porblem...i want to create a system that symbols for admins,moderators and players are show.... how can i do it??? i have this here but it is not working: function showImage() dxDrawImage() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "player.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "admin.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "moderator.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "vip.png" ) end end addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, showImage) end) Link to comment
yoya99 Posted October 5, 2014 Author Share Posted October 5, 2014 Ah and a much important question...how can i make the nametags asign to the colorcodes...for example i have #ff0000 and in chat i see it as a red but in my own-showing nametag above the player head i see it normal color.... Link to comment
xeon17 Posted October 6, 2014 Share Posted October 6, 2014 Where did you get this resource? Link to comment
yoya99 Posted October 6, 2014 Author Share Posted October 6, 2014 I got it 2 months ago from someone Link to comment
DeVo Posted October 6, 2014 Share Posted October 6, 2014 thx buddy....i have the next porblem...i want to create a system that symbols for admins,moderators and players are show.... how can i do it??? i have this here but it is not working: function showImage() dxDrawImage() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "player.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "admin.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "moderator.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "vip.png" ) end end addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, showImage) end) You're using server side functions in client side. You need to use, triggerServerEvent triggerClientEvent Link to comment
xeon17 Posted October 6, 2014 Share Posted October 6, 2014 I got it 2 months ago from someone The same code |-Zares-| posted before three days. Link to comment
John Smith Posted October 6, 2014 Share Posted October 6, 2014 I got it 2 months ago from someone The same code |-Zares-| posted before three days. They all stole it from grafuroam and cloned servers with names like *name*-roam( his nick is maxiroam in here as well) So yea its leaked script Link to comment
Recommended Posts