#[Racing] Freecam permission does not update.

1 messages · Page 1 of 1 (latest)

grave anvil
#

Product: LB-Racing
Issue: Freecam permission does not update.

When: When trying to change to a group/permission that enables freecam.

How to recreate: Start the script without freecam permission set on your character. Try to create a track (the option should not appear). Then grant your character a permission/group that allows freecam and try to create the track again (the option should appear, but since permissions are not refreshing, it does not show).

Does this happen for everyone: Yes

Attachment: https://youtu.be/SsPTAf_tIlU

Version: 1.2.0
Framework: Standalone

Has this bug appeared more than once? If so, how often?: Every time

Additional information: When updating group/permissions, I call the function RefreshPermissions() which should handle the freecam update. However, changes are not applied in real-time. The permission only updates after restarting the script. The same happens in reverse — removing a permission that allows freecam does not remove the option until the script is restarted.

low wren
# grave anvil **Product:** LB-Racing **Issue:** Freecam permission does not update. **Whe...

This has been fixed for the next update. To fix it until the update is released, you can change the RefreshPermission function in lb-racing/client/custom/functions/functions.lua to this: ```lua
function RefreshPermissions()
local data = {
track = {
create = CanCreateTrack(),
freecam = CanUseFreecam()
},
race = GetCreateRacePermissions()
}

SendNUIAction("setPermissions", data)
SendAppMessage("setPermissions", data)

end