Unkovic Posted September 1, 2018 Share Posted September 1, 2018 function PanelInf() guiSetText(informacije, triggerServerEvent("CheckPanel", getLocalPlayer())) end Clientside function checkP() stringic = string.format("Server Max Players: %d\nPlayers Online: %d", tonumber(getServerConfigSetting("maxplayers")), getPlayerCount() ) end Server side Where am I wrong, tell me Link to comment
coNolel Posted September 1, 2018 Share Posted September 1, 2018 guiSetText(informacije, triggerServerEvent("CheckPanel", getLocalPlayer())) ? string expected , not a function make the trigger in the serverside and send the value to the clientside Link to comment
sanyisasha Posted September 1, 2018 Share Posted September 1, 2018 (edited) You can make it in two ways. The first way is double triggering. You should trigger a getPlayerCountServer, and then retrigger a recrivePlayerCountClient in clientside. The secound what is not 100% to work, make a shared script, in it make a playerCount variable. In server, set playerCount equar to getPlayerCount. If i'm right, if you change playerCount shared variable in serverside, you shold see it in client side, but i'm not 100%. Good luck, SaSha. Edited September 1, 2018 by sanyisasha 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