Skip to main content
This is the main configuration file where you handle cross-system logic like UI behaviors, taxation, supported jobs, and environmental rules.

Core Properties

  • debug: Toggle verbose prints for development.
  • printLogs: Toggle standard logs in the server console.
  • framework: Your core framework (e.g. 'vorp', 'rsg').
  • webhookOptions: Configure the Discord webhook endpoint and its embedded color.

Integrations & Taxation

If you are using syn_society or mega_companies, you can configure taxes that are deducted dynamically when an NPC doctor performs an action.
  • syn_society: true/false to integrate with Syn’s society system.
  • mega_companies: true/false to integrate with Mega’s companies system.
  • ledgerTax: A float representing the percentage (e.g., 0.10 for 10%) deducted from NPC revenue before it hits the society.
  • taxJobId: Target society string where the taxes will go (e.g., 'state').

Target & Medical Jobs

  • jobs: A table containing all the job strings recognized as medical professionals (e.g., {'doctor', 'medic'}).
  • allowPlayerTargeting: Allows players to target others to use medical prompt actions.
  • playerTargetRange: Distance in meters the target prompts will appear.
  • inspectCommand & visitCommand: Chat commands to trigger Doctor actions on a patient.
  • noHeadshotRevive: If true, stops doctors (and NPCs) from reviving a patient if they died via a headshot.
  • graceTime: Time (in ms) to wait before applying diseases upon loading in. Helpful to avoid desync if other health scripts are loading heavily.

Environment & Temperatures

This block affects diseases like cold and works in combination with the player’s worn items.
  • useCelsius: Wether to calculate things in Celsius (true) or Fahrenheit (false).
  • bandanaEvent: Specify the client event used for toggling a bandana in your framework.

Clothes Temperatures (Config.ClothesTemperatures)

Controls how much warmth particular clothing categories provide. These decimal values are added to the ambient temperature.
Config.ClothesTemperatures = {
    -- Coats
    [0xE06D30CE] = {
        temperature = 2.0
    },
    -- Coats Closed
    [0x662AC34] = {
        temperature = 3.0
    },
    -- Gloves 
    [0xEABE0032] = {
        temperature = 0.5
    }
}

Internal Data (Advance configuration)

  • Config.boneIDsToAnimation: Internally maps RedM Ped bone hashes to injury animations. It is currently unused as native MP_Ped runstyles aren’t completely network-synced yet, but serves as the backbone data for future sync modules.