Installation
1. Add the resource
Put the gs-pedscale folder in your resources folder and start it after ox_lib:
server.cfg
ensure ox_lib
ensure gs-pedscale
2. Turn on strict state bags
Add this to server.cfg. It stops players from changing their own scale with cheats:
server.cfg
set sv_stateBagStrictMode true
3. Give yourself admin
Use either one:
-
ACE permission in
server.cfg:server.cfgadd_ace group.admin gs_pedscale.admin allow -
Your identifier in
server/permission.lua:server/permission.luareturn {identifierType = "discord", -- discord, license, fivem, steam, ...list = {["123456789012345678"] = true,},}
4. Test it
Restart the server and type /scalemenu. Players can only change their own size if you turn it on; see Configuration.