Skip to main content

Configuration

The information below is based on the supplied documentation. Verify actual runtime behavior against the current resource.

This page documents all settings in the supplied config.lua for Taser Probes. Values match the provided version. This documentation describes configuration and comments; actual runtime behavior of integrations depends on the script implementation.

Note: Values ending in Ms are milliseconds; 1000 ms = 1 s. vector3(x, y, z) uses GTA/FiveM coordinates.

Core configuration​

SettingCurrent valueDescription
Config.WeaponWEAPON_STUNGUNTaser weapon used (FiveM hash literal).
Config.ProbeModel'gmf_stundart'Fired probe model; must be streamed separately.
Config.FallbackModel'prop_cs_nail_01'Alternative probe model.
Config.UseFallbackModeltrueEnables fallback model according to script logic.
Config.StartupMs2500Startup delay in milliseconds.
Config.DebugfalseToggle debug output.

Firing, range and controls​

SettingCurrent valueDescription
Config.MaxFireDistance9.0Maximum firing distance in meters.
Config.FireCooldownMs650Cooldown between firing attempts in ms.
Config.ShockDurationMs2800Shock duration in ms.
Config.MaxAdditionalShocks1Maximum additional shocks when unlimited mode is disabled.
Config.UnlimitedAdditionalShockstrueAllows unlimited additional shocks; overrides additional-shock limit.
Config.SecondShockDurationMs2200Ragdoll duration for the second electrical pulse in ms.
Config.ContactShockRadius1.0Contact stun range between player peds in meters.
Config.ContactShockDurationMs2200Contact shock duration in ms.
Config.ContactShockCooldownMs1200Cooldown between contact shocks in ms.
Config.MaxRemovalDistance2.0Maximum distance for removing probes in meters.
Config.LaserDefaultfalseLaser enabled or disabled by default.
Config.LaserOffsetvector3(0.0, 0.0, 0.0)Laser origin offset relative to the weapon.
Config.LaserKey'L'Key for laser control.
Config.RemoveKey'E'Key for removing probes.
Config.ReloadKey'R'Reload key.
Config.ReloadMs1700Reload duration in ms.

Probes and hit positions​

SettingCurrent valueDescription
Config.Probes2 EintrΓ€ge / 2 entriesTwo probe positions with bone, offset and rotation; see code example.
Config.ProbeSurfaceOffset0.25Probe distance from body surface in meters.
Config.ProbeRotationCorrectionvector3(0.0, 0.0, 0.0)Additional probe rotation correction.
Config.ImpactProbeSeparation0.055Spacing between probes around impact in meters.
Config.ImpactProbeRotationvector3(90.0, 0.0, 0.0)Probe rotation at impact.
Config.RopeNeedleOffsetvector3(0.0, 0.0, 0.045)Cable connection point relative to probe model.
config.lua
Config.Probes = {
{bone = 24818, offset = vector3(-0.105, 0.12, 0.07), rotation = vector3(0.0, 0.0, 0.0)},
{bone = 24818, offset = vector3(0.105, 0.12, -0.10), rotation = vector3(0.0, 0.0, 0.0)},
}

Wires, ropes and laser​

SettingCurrent valueDescription
Config.RopeType5GTA rope type 5 (RopeReins).
Config.MaxWireLength10.0Maximum wire length in meters.
Config.WireSlack0.65Extra slack in meters.
Config.SlackFadeStart3.0Distance at which extra slack begins fading.
Config.RopeRefreshMs120Rope refresh interval in ms.
Config.AutoDetectMuzzletrueAttempts to use the weapon gun_muzzle bone.
Config.RopeWeaponOffsetvector3(0.0, 0.0, 0.0)Fallback origin on weapon entity if muzzle bone is unavailable.
Config.WireRed255Wire red channel (0–255).
Config.WireGreen255Wire green channel (0–255).
Config.WireBlue255Wire blue channel (0–255).
Config.WireAlpha240Wire opacity (0–255).
Config.DrawWireFallbacktrueFallback wire rendering if GTA rope textures are invisible.
Config.WireSegments14Number of fallback wire segments.
Config.UsePhysicalRopesfalseToggle physical GTA rope forces.
Config.HandBone57005Legacy hand bone; no longer used as rope origin per config.
Config.HandOffsets2 Γ— vector3Legacy hand offsets; no longer used as rope origins.
config.lua
Config.HandOffsets = {
vector3(0.03, 0.08, -0.01),
vector3(0.04, 0.08, 0.01)
}

Electrical effects​

SettingCurrent valueDescription
Config.ElectricFxDurationMs1100Electrical effect duration on second shock in ms.
Config.ElectricParticleName'ent_sht_electrical_box'Particle effect name.
Config.ElectricParticleScale0.65Particle effect scale.

Reloading and inventory​

SettingCurrent valueDescription
Config.RequireReloadItemfalseWhether reloading requires an inventory item.
Config.ReloadItem'taser_cartridge'Name of required reload item.
Config.ReloadInventory'auto'Inventory system: auto, ox, esx, qb per config comment.
Config.ReloadAnimation.enabledtrueEnable reload animation.
Config.ReloadAnimation.dict'weapons@pistol@'Reload animation dictionary.
Config.ReloadAnimation.name'reload'Reload animation clip name.
Config.ReloadAnimation.flag48GTA animation flag for reloading.

Shock animations and ragdoll​

SettingCurrent valueDescription
Config.VictimShockAnimations.enabledtrueEnable custom victim shock animations.
Config.VictimShockAnimations.loadTimeoutMs1500Maximum animation dictionary load time in ms.
Config.VictimShockAnimations.animations5 ClipsList of dict, name, flag; see complete example.
Config.PostTaserRagdoll.enabledtrueSwitch to ragdoll after ranged stun animation.
Config.PostTaserRagdoll.durationMs5000Ragdoll duration in ms.
Config.PostTaserRagdoll.applyToPlayerstrueEnable ragdoll for players.
Config.PostTaserRagdoll.applyToNPCstrueEnable ragdoll for NPCs.
Config.PostTaserRagdoll.applyOnAdditionalShocktrueApply ragdoll to additional shocks.
Config.PostTaserRagdoll.applyOnContactShockfalseApply ragdoll after contact shock.
config.lua
Config.VictimShockAnimations = {
enabled = true,
loadTimeoutMs = 1500,
animations = {
{dict = 'gmf_stunanim@anim', name = 'gmf_stunned1', flag = 1},
{dict = 'gmf_stunanim@anim', name = 'gmf_stunned2', flag = 1},
{dict = 'gmf_stunanim@anim', name = 'gmf_stunned3', flag = 1},
{dict = 'gmf_stunanim@anim', name = 'gmf_stunned4', flag = 1},
{dict = 'gmf_stunanim@anim', name = 'gmf_stunned5', flag = 1},
}
}

The file [email protected] must be streamed by a started resource. The five clip names are user-provided; the internal YCD structure was not re-verified here.

Wire break and injuries​

SettingCurrent valueDescription
Config.WireBreakCheckMs500Wire break check interval in ms.
Config.EmbeddedNeedlesDamageEnabledtrueEnable periodic damage from embedded probes.
Config.EmbeddedNeedlesDamageIntervalMs60000Interval between damage ticks in ms.
Config.EmbeddedNeedlesDamageHP5Health points lost per interval.
Config.EmbeddedNeedlesMinHealth1Minimum health threshold per config; comment suggests 101 for nonlethal behavior.
Config.MedicIntegration.enabledfalseEnable medical integration.
Config.MedicIntegration.injuryType'taser_probe'Injury type identifier.

Urination and clothing​

SettingCurrent valueDescription
Config.Urination.enabledtrueEnable urination feature.
Config.Urination.chancePercent5Chance per shock in percent.
Config.Urination.inventory'auto'Inventory bridge; config comment lists tgiann, ox, esx, qb.
Config.Urination.puddleEnabledtrueEnable puddle rendering.
Config.Urination.decalType9100GTA decal ID; depends on game version/build.
Config.Urination.puddleSize0.75Puddle size.
Config.Urination.puddleLifetimeSeconds90.0Puddle lifetime in seconds.

Integration events​

-- Server: medical injury event
AddEventHandler('gmf_taserprobes:medicalInjury', function(data)
-- Connect your medical system here
end)

-- Client: soiled clothing event
AddEventHandler('gmf_taserprobes:clothingSoiled', function(data)
-- Connect your clothing/inventory system here
end)

The events are documented as integration points in the config. The exact structure of data cannot be determined from the config alone. These examples are placeholders, not complete integrations.

Notes and troubleshooting​

  • Animation fails to load: Check dictionary and clip names and ensure the YCD file is streamed correctly.
  • Probes are embedded or floating: Adjust Config.ProbeSurfaceOffset and, if needed, Config.ProbeRotationCorrection.
  • Wire is invisible: Check Config.DrawWireFallback, Config.WireSegments and color values.
  • Reload unexpectedly requires an item: Check Config.RequireReloadItem and the implemented inventory bridge.
  • Puddle missing: Config.Urination.decalType may behave differently depending on GTA build.
  • Ragdoll instead of animation: Check the animation dictionary and Config.PostTaserRagdoll.

Support​

Questions or issues? Join our Discord.