I am looking for a lua coder to help me make a hud for my darkrp server.
I don't mind what or how it looks..
any thing is better then the crap one you get with the gamemode.
or can someone fix this one "http://www.garrysmod.org/downloads/?a=view&id=126167"
[highlight](User was banned for this post ("Missed the hire thread" - Ninja101))[/highlight]
You seem to have missed [url=http://www.facepunch.com/showthread.php?t=1193966]this thread[/url].
If you want anyone to fix the HUD you linked to. It might be necessary to post which errors you get when using it?
oh sorry here is the error
[code][ERROR] lua/includes/modules/draw.lua:70: 'ScoreboardText' isn't a valid font
1. SetFont - [C]:-1
2. SimpleText - lua/includes/modules/draw.lua:70
3. DrawPlayerInfo - gamemodes/darkrp/gamemode/client/hud.lua:94
4. DrawHUD - gamemodes/darkrp/gamemode/client/hud.lua:310
5. unknown - gamemodes/darkrp/gamemode/client/hud.lua:406[/code]
If someone can help <3
Place in lua/autorun/
[url]http://pastebin.com/1kdcqghK[/url]
[QUOTE=.\\Shadow};38548984]Place in lua/autorun/
[url]http://pastebin.com/1kdcqghK[/url][/QUOTE]
While you're at it Shadow, could you also make me a Theater gamemode?
[QUOTE=.\\Shadow};38548984]Place in lua/autorun/
[url]http://pastebin.com/1kdcqghK[/url][/QUOTE]
Thank you that seems to have fixed it.. but now I get this error
[code][ERROR] gamemodes/darkrp/gamemode/client/hud.lua:48: attempt to compare number with string
1. formatNumber - gamemodes/darkrp/gamemode/client/hud.lua:48
2. DrawPlayerInfo - gamemodes/darkrp/gamemode/client/hud.lua:148
3. DrawHUD - gamemodes/darkrp/gamemode/client/hud.lua:310
4. unknown - gamemodes/darkrp/gamemode/client/hud.lua:406[/code]
Right before that line, put
[lua]n = tonumber(n or 0)[/lua]
I don't have DarkRP downloaded, so I can't exactly test it out right now.
That did something. but now I have a new error
[code][ERROR] gamemodes/darkrp/gamemode/client/hud.lua:377: attempt to call global 'ValidEntity' (a nil value)
1. DrawEntityDisplay - gamemodes/darkrp/gamemode/client/hud.lua:377
2. unknown - gamemodes/darkrp/gamemode/client/hud.lua:409[/code]
add this to the code:
[lua]
function ValidEntity(ent)
return IsValid(ent)
end
[/lua]
[QUOTE=SweetTea;38549951]add this to the code:
[lua]
function ValidEntity(ent)
return IsValid(ent)
end
[/lua][/QUOTE]
Or just replace any instance of "ValidEntity" with "IsValid"?
I'm sure most text editors have a "find and replace" feature
Sorry, you need to Log In to post a reply to this thread.