Jump to content

[help] Welcome Script


6d23

Recommended Posts

why does this script dont works?

addCommandHandler (help, guihelp, restricted = false, caseSensitive = true)
 
 
--Gui Starts Here
---------------------
function guihelp (commandName)
 
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
 
GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false)
See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1])
How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1])
GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1])
GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[1],255,255,255)
guiLabelSetVerticalAlign(GUIEditor_Label[1],"top")
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false)
 
--- --- --- --- ---

thnxs for awnsering (better now than never, lol! :lol:

Link to comment

That isn't the syntax for addCommandHandler - lua doesn't support named arguments, so remove the 'restricted =' and 'caseSensitive =' parts. Can't really tell about the rest.

Use debugscript 3 in the console - Lua would have given you an error about that.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...