I'm not English but but I will try to speak in English.
Hello in a file lua I create a DFrame and in it I put a button "Admin" and when I click on it I will like
to become superadmin but how to do it please? at the end to execute the script will you put a
"lua_openscript_cl" or a "lua_openscript_sv" ?
thank you
You'd use lua_openscript_cl since it's a clientside script. You'll need to network from client-> on button press so that the server can set the player's usergroup. Here are the relevant functions/pages:
Net Library Usage
DButton/DoClick
Player/SetUserGroup
thanks , but can I have a script for exemple please ?
You can see an example net script here. Make an attempt to write the script yourself.
thank you so much
Sorry, you need to Log In to post a reply to this thread.