• Need Usermessage help - Warning: Unhandled usermessage 'Helpmenu'
    2 replies, posted
Okay, so I made my derma and I tested it, and it works great. So I took the next step. Customizing DarkRp's F1 Menu. First off. At the bottom of my derma I have the following code: [code] end end concommand.Add("Helpmenu",helpSystem) usermessage.Hook( "Helpmenu", helpSystem ) [/code] in my init.lua I have [code] -- Help Menu AddCSLuaFile("cl_helpmenu.lua") include("cl_helpmenu.lua") [/code] And in my main.lua I have: [code] function GM:ShowHelp(ply) umsg.Start("Helpmenu", ply) umsg.End() end function GetHelp(ply, args) umsg.Start("Helpmenu", ply) umsg.End() return "" end [/code] And I get the following error when I press F1: [b]Warning: Unhandled usermessage 'Helpmenu' [/b] I can't see what i'm doing wrong here, can anyone help me out with this?
you need to include the file on the client too put include("cl_helpmenu.lua") in cl_init.lua or something clientside.
[QUOTE=FPtje;16959867]you need to include the file on the client too put include("cl_helpmenu.lua") in cl_init.lua or something clientside.[/QUOTE] Thanks, that worked!
Sorry, you need to Log In to post a reply to this thread.