Troubleshooting
Common issues and implementation notes for gcm_securezone.
/securezone does nothing for staff
Possible Causes
- Staff account does not match
Config.GroupPermissions. - ACE permissions are missing or misconfigured.
isPlayerStafflogic incustom/server.luadoes not match your framework data shape.
Fix
- Verify group names and ACE entries.
- Add temporary debug logs in
isPlayerStaff. - Adjust permission adapter logic to your framework.
Zones do not load after restart
Possible Causes
oxmysqlstarts aftergcm_secureZone.gcm_securezonetable does not exist.- Invalid JSON stored in
pointsoroptionscolumns.
Fix
- Ensure startup order:
oxmysqlbeforegcm_secureZone. - Re-import
database.sql. - Validate JSON integrity in DB rows.
Player restrictions are not applied inside safe zone
Possible Causes
- Zone is saved with
enabled = false. - Restriction options were disabled in runtime config.
- Whitelist conditions match the player (
whitelistStaff,whitelistJobs).
Fix
- Review zone toggle state and restriction flags.
- Re-check whitelist values and normalize job names to lowercase.
Speed cap behaves inconsistently
Possible Causes
limitarVelocidadis disabled.velocidadMaximahas unrealistic values.- Another resource modifies vehicle speed/handling.
Fix
- Enable speed cap and set practical km/h limits.
- Retest with conflicting vehicle control scripts disabled.
HUD indicator position looks incorrect
Possible Causes
- Invalid value in
Config.hudIndicatorPosition.
Fix
Use one of the allowed values:
top-lefttop-rightbottom-leftbottom-right
Restart the resource after config changes.
Implementation Risk Notes
These notes highlight potential edge cases or improvements in the current implementation.
Runtime Option Integrity
Invalid or partial JSON in the options payload can produce silent behavior drift between UI and runtime enforcement.