Configuration

This configuration file allows you to customize various aspects of the Pro Car in Item system. Below is a detailed explanation of each setting and how to use them.

General Settings

JJ = {}

JJ.Key = 'E' -- Key to open the inventory (once changed, players that cached the previous value won't be affected)

JJ.Notify = function(title, msg, type)
    exports['JJ-Notify']:Alert(title, msg, 2500, type, true)
    --exports['okokNotify']:Alert(title, msg, 2500, type, true)
end

JJ.CheckVersion = true

JJ.DrawZones = true -- Draw safezones on map
  • Key: The key to give back vehicle. Modify this to your preferred keybinding.
  • Notify: A function to display notifications to the player. The default system is JJ-Notify, but you can switch to another notification system like okokNotify.
  • CheckVersion: Set this to true to check if the system version is up-to-date.
  • DrawZones: If true, safe zones will be drawn on the map to indicate restricted areas where vehicles cannot be spawned.

SafeZones

JJ.Safezones = { 
    {x = 424.7508, y = -1022.5021, z = 28.8984, radius = 100},       
    {x = 1002.88, y = 41.94, z = 59.83, radius = 100}, 
    {x = 1070.3380, y = -26.0053, z = 79.9220, radius = 100},      
    {x = -1267.5592041015626, y = -208.92820739746095, z = 40.55163955688476, radius = 100}, -- TEST    
    {x = -541.8859, y = -210.1477, z = 37.6498, radius = 100},  -- MAIN       
    {x = 2766.4370, y = 3284.9395, z = 55.8288, radius = 10}, -- Add more if needed
}
  • Safezones: These are defined areas where vehicles cannot be spawned. Each zone is defined by its coordinates (x, y, z) and a radius. Modify these as needed or add additional zones.

Time Settings

JJ.SpawnTime = 1000 -- 1000 = 1 second
JJ.NotifTime = 1000 -- 1000 = 1 second
  • SpawnTime: Sets the time (in milliseconds) for vehicle spawning delay.
  • NotifTime: Sets the time (in milliseconds) for notification duration.

Vehicle Items

JJ.VehicleItems = {
    ["t20"] = { model = "t20", cansteal = false }, -- ["ITEM NAME"] MODEL = SPAWNCODE
    ["havok"] = { model = "havok", cansteal = false },
}
  • VehicleItems: This defines the items that are associated with specific vehicles. You can add more vehicles here, with the item name as the key and the model as the value.

Language Configuration

JJ.PlateText = "JJ-SCRIPTS"

JJ.Lang = {
    Title = "Spawn Vehicle",
    cannot_spawn_here = "You cannot spawn the vehicle.",
    car_stored = 'Vehicle Stored',
    car_spawned = 'Vehicle Spawned',
    car_needStop = 'You have to stop the car to save it',
    safezone = 'Cannot obtain vehicles in this area',
    inside_car = 'You cannot use this item inside the vehicle',
    uitake = "Take vehicle"
}

JJ.Type = {
    safezone = 'error',
    car_stored = 'info',
    car_needStop = 'info',
    inside_car = 'error'
}
  • PlateText: Text for the vehicle plate (used for naming or tagging vehicles).
  • Lang: Language settings for various notifications and prompts in the script. Customize these strings as needed.
  • Type: Defines the type of notification for each message (e.g., "error", "info").