Astreuz Posted August 19, 2014 Share Posted August 19, 2014 Hello,i have problem with nick hide if i play in DM map.In debugscript write problem in line 63 in utill_client.lua. Here is code on hide nick in my car and other players.Here is utill_client.lua GUI: |38|function showHUD(show) for i,name in ipairs({ 'ammo', 'area_name', 'armour', 'breath', 'clock', 'health', 'money', 'vehicle_name', 'weapon' }) do showPlayerHudComponent(name, show) end end function showGUIComponents(...) for i,name in ipairs({...}) do if g_dxGUI[name] then g_dxGUI[name]:visible(true) elseif type(g_GUI[name]) == 'table' then g_GUI[name]:show() else guiSetVisible(g_GUI[name], true) end end end function hideGUIComponents(...) for i,name in ipairs({...}) do if g_dxGUI[name] then g_dxGUI[name]:visible(false) elseif type(g_GUI[name]) == 'table' then g_GUI[name]:hide() else guiSetVisible(g_GUI[name], false) end end end function setGUIComponentsVisible(settings) for name,visible in pairs(settings) do if type(g_GUI[name]) == 'table' then g_GUI[name][visible and 'show' or 'hide'](g_GUI[name]) else guiSetVisible(g_GUI[name], visible) end end end function createShadowedLabel(x, y, width, height, text, align) local shadow = guiCreateLabel(x + 1, y + 1, width, height, " ", false) guiLabelSetColor(shadow, 0, 0, 0) local label = guiCreateLabel(x, y, width, height, text, false) guiLabelSetColor(label, 255, 255, 255) if align then guiLabelSetHorizontalAlign(shadow, align) guiLabelSetHorizontalAlign(label, align) end return label, shadow end function msToTimeStr(ms) if not ms then return '' end local centiseconds = tostring(math.floor(math.fmod(ms, 1000)/10)) if #centiseconds == 1 then centiseconds = '0' .. centiseconds end local s = math.floor(ms / 1000) local seconds = tostring(math.fmod(s, 60)) if #seconds == 1 then seconds = '0' .. seconds end local minutes = tostring(math.floor(s / 60)) return minutes .. ':' .. seconds .. ':' .. centiseconds end function getTickTimeStr() return msToTimeStr(getTickCount()) end function resAdjust(num) if not g_ScreenWidth then g_ScreenWidth, g_ScreenHeight = guiGetScreenSize() end if g_ScreenWidth < 1280 then return math.floor(num*g_ScreenWidth/1280) else return num end |120|end Script no hide nick players into play map.What's wrong in this?Sorry for my bad english,i still learning this language 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