JP5M Docs
TebexDiscord
  • About JP5M
  • Paid Scripts
    • jp-refstart
      • Installation
      • Configuration
      • Admin Panel
  • jp-dutyblips
    • Installation
    • Configuration
  • jp-multijob
    • Installation
    • Configuration
  • jp-territories
    • Installation
    • Configuration
      • Base Configuration
      • Territory Configuration
      • Add-ons
  • Free Scripts
    • jp-elevator
      • Installation
      • Configuration
Powered by GitBook
On this page
  • Basic Settings
  • Vehicle Spawn Locations
  • NPC
  • Default Start Items
  • Fuel Support
  1. Paid Scripts
  2. jp-refstart

Configuration

How to configure the Script to your liking

Basic Settings

Config = {
    Locale = "de", -- or "en", "fr", "es", "pl", "it", "tr", "ru", "nl", "da"
    useRefCodes = true, -- Enable Ref codes?
    useCustomRefCodeRewards = true, -- Enable custom items for each code?
    giveVehicleToPlayer = true, -- Enable vehicle gift?
    giveCustomRefCodeVehicleToPlayer = true, -- Enable custom vehicle for each code?
}

Choose your correct language or add your own in the locales folder. Optionally, you can also disable the use of referral codes or custom code-specific rewards here.

Vehicle Spawn Locations

Config.VehicleSpawns = { 
    { x = -1030.3112, y = -2732.0222, z = 20.0834, w = 240.3578 },
    { x = -1036.6667, y = -2728.3276, z = 20.0844, w = 240.3578 },
    { x = -1042.4622, y = -2724.8982, z = 20.0879, w = 240.3578 },
}

The script comes with three default spawn locations for vehicles. You can edit them, or add spawn points here.

NPC

Config.NPC = {
    model = 's_m_m_highsec_02',
    position = vector4(-1032.1654, -2734.6616, 19.1693, 113.3991)
}

Choose your preferred NPC model and its spawn location here.

Default Start Items

Config.StarterItems = {
    money = 5000,
    items = {
        {item = 'bagel_b', count = 5},
        {item = 'sprunk', count = 5},
        {item = 'phone', count = 1}
    },
    vehicle = "sultan", -- Base Vehicle, leave unchanged if you dont use giveVehicleToPlayer
    parking = "", -- Parking location name for storing the vehicle in the database (set to "" if your garage system doesn't support parking)
    teleportPlayer = true -- Do you want to Teleport the Player into the vehicle?
}

Here you can edit what every player gets as base reward. These Items are granted to the player even without referral code. If a referral code was used, these Items get added on top.

If your server runs a parking script, choose the default garage name the vehicle gets stored in as default. If your garage system is global, leave parking empty.

Fuel Support

Config.SetFuel = function(vehicle, fuel)
    if GetResourceState("LegacyFuel") == "started" then
        exports['LegacyFuel']:SetFuel(vehicle, fuel)
    elseif GetResourceState("cdn-fuel") == "started" then
        exports['cdn-fuel']:SetFuel(vehicle, fuel)
    elseif GetResourceState("ps-fuel") == "started" then
        exports['ps-fuel']:SetFuel(vehicle, fuel)
    elseif GetResourceState("lj-fuel") == "started" then
        exports['lj-fuel']:SetFuel(vehicle, fuel)
    elseif GetResourceState("ox_fuel") == "started" then
        Entity(vehicle).state.fuel = fuel
    else
        warn("Fuel resource not found, please set your fuel resource in the config.lua")
    end
end

Our script comes with support for most of the popular choices. However if your fuel system is missing here, be sure to add its setFuel function accordingly.

PreviousInstallationNextAdmin Panel

Last updated 1 month ago