#Changing user permissions within the app.

1 messages · Page 1 of 1 (latest)

peak bluff
#

I saw mention of the user permissions potentially being able to be changed within the app, but when I go to the racers tab, I have no option to edit the racers. The auth can be changed on the back end and it works fine, but is there a way to change it within the server while having god auth?

keen nymph
#

No, but this is actually coming in the next update.

peak bluff
#

We found a workaround in the meantime using commands to change it. Ran into another issue with user profiles not loading after restart as well. Thanks for the reply, looking forward to the update!

keen nymph
#

Yeah I'm also adding a specific command to do it in the script.

I'm planning to add a way for user creators to also change roles below them, so master can change someone from racer -> creator. But that's probably not coming yet 😅

#

What issue is that? 🤔

peak bluff
# keen nymph What issue is that? 🤔

The profiles existed, but upon server restart the profiles wouldn't load until we restarted cw-racingapp. Once it started up again, they'd show up fine. I'm not entirely sure what was causing it, but we added a function to check for profiles on the player loading in, as well as checks for citizenIDs

keen nymph
#

It could be a bridge issue. What core are you using?

peak bluff
#

QB based but custom. It was absolutely a bridge issue though

keen nymph
#

Is this not how QBcore does an on player load?

RegisterNetEvent("QBCore:Client:OnPlayerLoaded", function()
    initialSetup()
end)
peak bluff
#

It is. The server just wasn't synching the racer profiles for some reason. We ended up adding a playerSpawned event to trigger profile loading when they connect. I couldn't tell you why OnPlayerLoaded wasn't working for us though, tbh

keen nymph
#

ah ok, maybe it's just your servers "custom" stuff that caused it then

peak bluff
#

Yeah 💀 I keep giving @lapis arrow a hard time for it

lapis arrow
#

I added a command prompt that allows gods to change people’s rank but it does not take place until the script is reset. We don’t have it set up as a job to grant temporary permissions no so big deal

We did correct the player database not syncing correctly on server restart