manawydan Posted February 5, 2014 Posted February 5, 2014 (edited) hi, iam try make label with exp text( using drawyourlevel) but the label no apers Edited February 5, 2014 by Guest
manawydan Posted February 5, 2014 Author Posted February 5, 2014 error guiSetText[expected gui element argument 1, got nil in debug label not appear, (i am level 6, using your exp_system)
Jacobob14 Posted February 5, 2014 Posted February 5, 2014 You can use this script https://community.multitheftauto.com/in ... ls&id=6143
Castillo Posted February 5, 2014 Posted February 5, 2014 error guiSetText[expected gui element argument 1, got nil in debuglabel not appear, (i am level 6, using your exp_system) Are you sure about this? because I tested it and works fine.
manawydan Posted February 5, 2014 Author Posted February 5, 2014 it work if i start it ingame, but if one player join, no appers to the player the labels
Castillo Posted February 5, 2014 Posted February 5, 2014 addEventHandler("onClientResourceStart",resourceRoot, function () Label_level = guiCreateLabel(265, 2, 105, 41, "Level: ".. tostring ( getElementData(localPlayer,"level") or 0 ), false) guiSetFont(Label_level, "sa-header") guiLabelSetColor(Label_level, 67, 171, 251) label_exp = guiCreateLabel(401, 2, 78, 35, " ".. tostring ( getElementData(localPlayer,"exp") or 0 ), false) guiSetFont(label_exp, "sa-header") guiLabelSetColor(label_exp, 90, 243, 74) Laberl_expreq = guiCreateLabel(501, 2, 78, 35, " ", false) guiSetFont(Laberl_expreq, "sa-header") guiLabelSetColor(Laberl_expreq, 225, 217, 91) end )
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