FlyingSpoon Posted November 7, 2014 Posted November 7, 2014 Well here is my code so, far. I am starting on wards from Basic Roleplay updated by Socialz and Anubhav. addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(188, 157, 452, 187, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(20, 35, 103, 28, "Character Name :", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(128, 31, 166, 26, "Firstname_Lastname", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(343, 139, 94, 38, "Spawn", false, GUIEditor.window[1]) end ) Would I use guiGetText( GUIEditor.edit[1] ) and how would I set the player's nick to Firstname_Lastname ??
SkatCh Posted November 7, 2014 Posted November 7, 2014 addEventHandler("onClientResourceStart", resourceRoot, function() Window = guiCreateWindow(188, 157, 452, 187, "", false) guiWindowSetSizable(Window, false) guiSetVisible (window ,false) label = guiCreateLabel(20, 35, 103, 28, "Character Name :", false, Window) edit = guiCreateEdit(128, 31, 166, 26, "Firstname_Lastname", false, Window) button = guiCreateButton(343, 139, 94, 38, "Spawn", false, Window) end )
FlyingSpoon Posted November 8, 2014 Author Posted November 8, 2014 No, no. You don't understand me. What I was meant to say is when the player writes their Firstname_Lastname in the edit box, and press 'Spawn' their name will change into the Firstname_Lastname they chosen. Any ideas?
Anubhav Posted November 8, 2014 Posted November 8, 2014 Oh thanks for using it. You must set the nametag text. setPlayerNametagText Good luck!
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