Configuration
We will read you our configuration so you can easily set it up.
Spectron.Debug
Type: bolean (true/false)
Default: false
If true, it will print debug actions into you console.
Spectron.Inventory
Type: ox
The inventory that will be used to give the weapon license item to the player.
We will add more options soon, but for now this is the only option.
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.RecieveItem
Type: bolean (true/false)
Default: true
This will give the player the weapon license item into there inventory.
Spectron.ItemName
Type: text
Default: weapon_license
This is the item the player will recieve when they completed the weapon exam successfully.
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
Was this helpful?