Santafe Scripts
πŸ“ SF Safe Zone
πŸ“„ Configuration

Configuration

All configuration is done inside config.lua.

Notification System

Config.NotifyScript = 'QBCore'

Supported values: 'QBCore', 'ox_lib', 'okokNotify', 'mythic_notify'

Admin Access

-- Option 1: Discord ID
Config.AdminDiscords = {
    'discord:123456789012345678',
}
 
-- Option 2: citizenid or license
Config.Admins = {
    'ABC123',
    'license:1234567890abcdef',
}

Whitelisted Jobs

Jobs that can use weapons and bypass all safe zone restrictions:

Config.WhitelistedJobs = {
    'police',
    'sheriff',
    'ambulance',
    'fbi',
}

Notifications

Customize the messages players see on entry/exit:

Config.Notifications = {
    enter         = "You have entered a safe zone",
    exit          = "You have left the safe zone",
    cantUseWeapon = "You cannot use weapons in a safe zone",
    cantFight     = "You cannot fight in a safe zone"
}

Primary Color

Color used in the NUI tablet interface:

Config.PrimaryColor = '#B0F527'