⚙️Configuration

We will read you our configuration so you can easily set it up.

Spectron = {}
Spectron.Debug = false

Spectron.Locale = 'en'
Spectron.NpcSpawnDistance = 20
Spectron.NeededTimeToStart = 720
Spectron.SqlMethod = 'oxmysql'

Spectron.Playtime = true
Spectron.PlaytimeCommand = 'playtime'

Spectron.PedModel = 's_m_y_ammucity_01'
Spectron.Price = 1200

Spectron.Zones = {
	Weaponlicense = {
		Pos   		= {x = 818.1054, y = -2155.9619, z = 29.6190},
		blipIcon 	= 110,
		blipColor 	= 1,
		blipScale 	= 0.8,
		blipName 	= 'Weapon License'
	}
}

Spectron.Debug

  • Type: bolean (true/false)

  • Default: false

  • If true, it will print debug actions into you console.

Spectron.Locale

  • Type: nl - en

  • Default: en

  • This desides your locale of the script.

Spectron.NpcSpawnDistance

  • Type: int (number)

  • Default: 20

  • The distance amount when the npc will spawn in, this will reduce ms if the distance is lower.

Spectron.NeededTimeToStart

  • Type: int (number)

  • Default: 720

  • The script will check if you have enough playtime with our build-in playtime system, if you already have an active running server. All players will start on 0, this because it is saved in a sql table.

The Spectron.NeededTimeToStart is in minutes, so 720 is 12 hours.

Spectron.SqlMethod

  • Type: ox_mysql & ghmattimysql

  • Default: ox_mysql

  • This will choose wich method will be used to recieve the users playtime, if not send. Youre server will shut down and give a information error.

Spectron.Playtime

  • Type: bolean (true/false)

  • Default: True

  • Enables the playtime option, is disabled you don't need any playtime to start a exam.

Spectron.PlaytimeCommand

  • Type: text

  • Default: playtime

  • Change the command name if needed, don't use spaces, symbols, emoji's etc.

Spectron.PedModal

  • Type: text

  • Default: s_m_y_ammucity_01

  • This will change the ped model of the ped that will spawn on the given coords.

Spectron.Price

  • Type: int (number)

  • Default: 1200

  • This is the price that you need to pay to start the exam.

Spectron.Zones

  • Dont create more than 1 zone and dont change the zone name. Otherwise it will not work :)

  • Pos: x, y, z coords

  • blipIcon: Icon of the blip

  • blipColor: Color of the blip

  • blipScale: Scale of the blip

  • blipName: The name of the blip that you will see on the map.

Last updated