undefined Posted April 15, 2014 Share Posted April 15, 2014 (edited) local x,y = guiGetScreenSize() local level__ = exports.jack:getPlayerLevel ( player ) local exp__ = exports.jack:getPlayerEXP ( player ) addEventHandler("onClientResourceStart", resourceRoot, function() sWindow = guiCreateWindow((x/2)-150, (y/2)-150, 300, 300, "Test Panel", false) guiWindowSetSizable(sWindow, false) guiSetVisible(sWindow, true) guiSetAlpha(sWindow, 0.60) testLab = guiCreateLabel(430, 41, 163, 30, "Test", false, sWindow) guiLabelSetColor(testLab, 255, 255, 255) guiLabelSetHorizontalAlign(testLab, "center", true) guiLabelSetVerticalAlign(testLab, "center") if ( level__ < 3 ) and ( exp__ < 2118 ) then level2Lab = guiCreateLabel(430, 41, 214, 30, "Test Level 2", false, sWindow) guiLabelSetColor(level2Lab, 255, 255, 255) guiLabelSetHorizontalAlign(level2Lab, "center", true) guiLabelSetVerticalAlign(level2Lab, "center") end end ) [im use Castillo's Exp System] Where is the my mistake? Edited April 15, 2014 by Guest Link to comment
Vinctus Posted April 15, 2014 Share Posted April 15, 2014 local level__ = exports.jack:getPlayerLevel ( player ) local exp__ = exports.jack:getPlayerEXP ( player ) define the player Link to comment
WASSIm. Posted April 15, 2014 Share Posted April 15, 2014 them funtion server side only Link to comment
GTX Posted April 16, 2014 Share Posted April 16, 2014 Use getLocalPlayer() Instead of player. Link to comment
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