Config

Explanation of the Config.lua File for the Script

1. Marker Settings

  • Config.MarkerType: Defines the marker type that appears for players.

    • Set to 1 for a visible marker.

    • Set to -1 for a hidden marker. Refer to the list of available marker types here: FiveM Marker Types.

  • Config.DrawDistance: The distance from which the marker will be visible. Example: 10.0 means the marker will be visible from 10 meters.

  • Config.LoginZoneSize and Config.ZoneSize:

    • LoginZoneSize: Size of the marker for the login zone.

    • ZoneSize: Size of the marker for the smuggling zone.

  • Config.MarkerColor: Specifies the color of the marker using RGB values.

    • Example: {r = 0, g = 255, b = 0} sets the marker color to green.

2. Double Payment Settings

  • Config.brns_setdouble: If set to true, smuggling payments will be doubled. ⚠️ It is recommended not to modify this unless necessary.

  • Config.TriggerDoubleDrugs: The event that triggers the double payment system.

3. Map Blips

  • Config.ShowBlips: If set to true, smuggling zones will be visible on the map.

4. Smuggling Queue Settings

  • Config.EnableTabor: Enables the cancellation of the smuggling queue if set to true.

5. Police Jobs

  • Config.LeoJob: A list of specific jobs considered as law enforcement. Example: "police" and "agent".

  • Config.LeoJobs: A broader list of law enforcement jobs (e.g., police, ambulance, admin).

  • Config.sleepGetPolice: The time interval (in seconds) between updates for the number of active police officers.

6. Discord Integration

  • Config.imgURL: The URL of an image used in Discord embed messages.

  • Config.EmbedColor: The color of the embed message in Discord (in HEX format).

  • Config.Title: The title of the embed message.

  • Config.ServerName: The name of the server, which appears in Discord notifications.

7. Smuggling Settings

  • Config.MaxCiminale: The maximum number of smugglers allowed to participate at the same time.

  • Config.RequiredCopsWeed: Defines the requirements for smuggling each item:

    • cops: Minimum number of police officers required.

    • price: Normal selling price.

    • priceH: Selling price during double payment periods.

    • xp: Experience points awarded.

    • level: Minimum level required for smuggling.

    • max: Maximum quantity of the item that can be smuggled.

8. Farming and Selling Times

  • Config.TimeToFarmWeed: The time (in milliseconds) required to harvest items. Example: 1 * 1000 means 1 second.

  • Config.TimeToProcessWeed: The time required to process items.

  • Config.TimeToSellWeed: The time required to sell items.

9. Other Settings

  • Config.Locale: The language used for the script. Example: 'en' for English.

  • Config.TimeSell: Duration of the smuggling activity (in minutes). Example: 15 means smuggling lasts for 15 minutes.

  • Config.LoginZoneBlip: If set to true, the login zone will be visible on the map.

  • Config.LoginZone: Coordinates for the login zone. Example:

    { x = 1270.01, y = -1906.58, z = 39.43 }

💡 Tip: Adjust these settings based on your server's requirements and thoroughly test them to ensure everything works as intended.

Last updated