😇Config Narration

Config can be easy for some and difficult for others, so I decided to include it here.

This is the place at the top that will interest you.

Config.Framework = "newqb" -- esx - infinity - newqb - oldqb 
Config.Mysql = "oxmysql" -- oxymsql | mysql-async
Config.AnyAvatar = false -- Occasionally the API may crash so it will get an error ("local data" error) then set it to "true"
Config.UseDiscordAvatar = false -- true = Discord avatar(error), False = steam Avatar
Config.BossNPC  = vector3(-913.4832, 108.34772, 55.514678)
Config.BossNPC_Heading  = 85.740531
Config.Marker = vector3(-915.9658, 108.49288, 55.317443)
Config.DisplayMarker = true --If you do this "true", it will color the game map.
Config.DisplayCrewGPS  = true -- If you make this "true", they will be able to see the location of the people belonging to the mapte crew.
Config.GPSItem = "gps" -- gps
Config.SprayItem = "jerry_can"
Config.UpdateTick = 1500 --msec (Blip update süresi) / (Blip Update Interval) -- 400
Config.ShowYourself = true -- (Kişinin haritada kendini görüp göremeyeceğini seçin) / (You can see your own blip if true)
Config.VehicleBlips = true -- (Araçtayken blip işaretinin değişmesi ayarı) / (Blip sprite changes in vehicle if true)
Config.CreateCrewPrice = 15000
  • Config.Framework => It will be enough to write the type of framework you use in this section.

  • Config.Mysql => It will be sufficient to write the folder name of the SQL script you are using or write one of the specified ones.

  • Config.AnyAvatar => Occasionally the API may crash so it will get an error ("local data" error) then set it to "true"

  • Config.UseDiscordAvatar => Unfortunately, this item is not always available because the API provided by Discord is constantly crashing.

  • Config.BossNPC => The location of the standing NPC there when you want to build a Crew

  • Config.Marker => When you press "e" on the marker that comes to the determined position, the crew creation window will open.

  • Config.DisplayMarker => If you do this "true", it will color the game map.

  • Config.DisplayCrewGPS => If you make this "true", they will be able to see the location of the people belonging to the mapte crew.

  • Config.GPSItem => The name of the gps item among the Crewler itself, you can put the item name you have chosen here.

  • Config.SprayItem => You should write the name of the item you triggered the spray screen to appear here, when you use this item, if you are a crew, the spray screen will appear.

  • Config.UpdateTick => (Blip Update Interval)

  • Config.ShowYourself => (You can see your own blip if true)

  • Config.VehicleBlips => (Blip sprite changes in vehicle if true)

  • Config.CreateCrewPrice => The amount of money you will pay at the time of creating the crew.

Minigame settings on the Spray screen.

Config.SpraySpeedIncrement = 5 --How much should the speed increase when a key hit was successful
Config.SprayMaxMistake = 5 ----How many missed keys can there be before losing
Config.SprayMaxTime = 60000 --sec
Config.SprayScoreLose = -150 --Lose if this score is reached
Config.SprayScoreWin = 5 --Score to win
Config.SpraySpeed = 12 --pixels / second
Config.SprayHandleEnd = false --Send a result message if true and callback when message closed or callback immediately without showing the message
Config.SprayKey = {"a", "j", "d", "s", "g"} --You can hash this out if you want to use default keys in the java side.  
  • Config.SpraySpeedIncrement => How much should the speed increase when a key hit was successful

  • Config.SprayMaxMistake => How many missed keys can there be before losing

  • Config.SprayMaxTime => The maximum number of seconds you can stand on the Spray screen. (sec)

  • Config.SprayScoreLose => Lose if this score is reached

  • Config.SprayScoreWin => Score to win

  • Config.SpraySpeed => Pixel seconds of the marquee. (pixels / second)

Cornering (don't sell drugs on the corners)

Config.Corners = {
    [1] = {
        coord = vector3(191.2, -1764.08, 29.16),
        items = {"packagedweed", "packagedmeth", "packagedcoca"},
        radius = 30.0,
        minMoney = 100,
        maxMoney = 150,
        spawnpoints = {
            vector3(244.52, -1745.2, 28.8),
            vector3(238.4, -1797.16, 27.84),
        }
    },
    [2] = {
        coord = vector3(451.64, -1829.6, 27.84),
        items = {"packagedweed", "packagedmeth", "packagedcoca"},
        radius = 30.0,
        minMoney = 100,
        maxMoney = 150,
        spawnpoints = {
            vector3(418.68, -1807.44, 28.68),
            vector3(407.56, -1861.72, 26.84),
        },
    }
}
Config.DrugSell_maxQuantiy = 5
Config.ItemsName = {
    ["packagedweed"] = "Packaged Weed",
    ["packagedmeth"] = "Packaged Meth",
    ["packagedcoca"] = "Packaged Cocain",
}
  • in Config.Corners/coord => The part where the player will start cornering (calculated as the middle).

  • in Config.Corners/items => In this section, you write the item invocation name and label in the Config.ItemsName section and write the name of that item in this place, so that these items you have determined in that held region will be sold.

  • in Config.Corners/radius => It helps you to keep the average width of the coordinates you specified in the coord, if you move 30 distance away from the written coordinate, cornering will be cancelled.

  • in Config.Corners/spawnpoints => coordinates of npc spawned to buy drugs.

  • Config.DrugSell_maxQuantiy => The maximum number of items that can be sold. (not used much.)

  • Config.ItemsName=> Here, you must write the summon names of the items on the left and a label you want on the right, otherwise the item will not be deleted from your inventory.

Last updated