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
Msare milliseconds;1000 ms = 1 s.vector3(x, y, z)uses GTA/FiveM coordinates.
Core configurationβ
| Setting | Current value | Description |
|---|---|---|
Config.Weapon | WEAPON_STUNGUN | Taser 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.UseFallbackModel | true | Enables fallback model according to script logic. |
Config.StartupMs | 2500 | Startup delay in milliseconds. |
Config.Debug | false | Toggle debug output. |
Firing, range and controlsβ
| Setting | Current value | Description |
|---|---|---|
Config.MaxFireDistance | 9.0 | Maximum firing distance in meters. |
Config.FireCooldownMs | 650 | Cooldown between firing attempts in ms. |
Config.ShockDurationMs | 2800 | Shock duration in ms. |
Config.MaxAdditionalShocks | 1 | Maximum additional shocks when unlimited mode is disabled. |
Config.UnlimitedAdditionalShocks | true | Allows unlimited additional shocks; overrides additional-shock limit. |
Config.SecondShockDurationMs | 2200 | Ragdoll duration for the second electrical pulse in ms. |
Config.ContactShockRadius | 1.0 | Contact stun range between player peds in meters. |
Config.ContactShockDurationMs | 2200 | Contact shock duration in ms. |
Config.ContactShockCooldownMs | 1200 | Cooldown between contact shocks in ms. |
Config.MaxRemovalDistance | 2.0 | Maximum distance for removing probes in meters. |
Config.LaserDefault | false | Laser enabled or disabled by default. |
Config.LaserOffset | vector3(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.ReloadMs | 1700 | Reload duration in ms. |
Probes and hit positionsβ
| Setting | Current value | Description |
|---|---|---|
Config.Probes | 2 EintrΓ€ge / 2 entries | Two probe positions with bone, offset and rotation; see code example. |
Config.ProbeSurfaceOffset | 0.25 | Probe distance from body surface in meters. |
Config.ProbeRotationCorrection | vector3(0.0, 0.0, 0.0) | Additional probe rotation correction. |
Config.ImpactProbeSeparation | 0.055 | Spacing between probes around impact in meters. |
Config.ImpactProbeRotation | vector3(90.0, 0.0, 0.0) | Probe rotation at impact. |
Config.RopeNeedleOffset | vector3(0.0, 0.0, 0.045) | Cable connection point relative to probe model. |
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β
| Setting | Current value | Description |
|---|---|---|
Config.RopeType | 5 | GTA rope type 5 (RopeReins). |
Config.MaxWireLength | 10.0 | Maximum wire length in meters. |
Config.WireSlack | 0.65 | Extra slack in meters. |
Config.SlackFadeStart | 3.0 | Distance at which extra slack begins fading. |
Config.RopeRefreshMs | 120 | Rope refresh interval in ms. |
Config.AutoDetectMuzzle | true | Attempts to use the weapon gun_muzzle bone. |
Config.RopeWeaponOffset | vector3(0.0, 0.0, 0.0) | Fallback origin on weapon entity if muzzle bone is unavailable. |
Config.WireRed | 255 | Wire red channel (0β255). |
Config.WireGreen | 255 | Wire green channel (0β255). |
Config.WireBlue | 255 | Wire blue channel (0β255). |
Config.WireAlpha | 240 | Wire opacity (0β255). |
Config.DrawWireFallback | true | Fallback wire rendering if GTA rope textures are invisible. |
Config.WireSegments | 14 | Number of fallback wire segments. |
Config.UsePhysicalRopes | false | Toggle physical GTA rope forces. |
Config.HandBone | 57005 | Legacy hand bone; no longer used as rope origin per config. |
Config.HandOffsets | 2 Γ vector3 | Legacy hand offsets; no longer used as rope origins. |
Config.HandOffsets = {
vector3(0.03, 0.08, -0.01),
vector3(0.04, 0.08, 0.01)
}
Electrical effectsβ
| Setting | Current value | Description |
|---|---|---|
Config.ElectricFxDurationMs | 1100 | Electrical effect duration on second shock in ms. |
Config.ElectricParticleName | 'ent_sht_electrical_box' | Particle effect name. |
Config.ElectricParticleScale | 0.65 | Particle effect scale. |
Reloading and inventoryβ
| Setting | Current value | Description |
|---|---|---|
Config.RequireReloadItem | false | Whether 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.enabled | true | Enable reload animation. |
Config.ReloadAnimation.dict | 'weapons@pistol@' | Reload animation dictionary. |
Config.ReloadAnimation.name | 'reload' | Reload animation clip name. |
Config.ReloadAnimation.flag | 48 | GTA animation flag for reloading. |
Shock animations and ragdollβ
| Setting | Current value | Description |
|---|---|---|
Config.VictimShockAnimations.enabled | true | Enable custom victim shock animations. |
Config.VictimShockAnimations.loadTimeoutMs | 1500 | Maximum animation dictionary load time in ms. |
Config.VictimShockAnimations.animations | 5 Clips | List of dict, name, flag; see complete example. |
Config.PostTaserRagdoll.enabled | true | Switch to ragdoll after ranged stun animation. |
Config.PostTaserRagdoll.durationMs | 5000 | Ragdoll duration in ms. |
Config.PostTaserRagdoll.applyToPlayers | true | Enable ragdoll for players. |
Config.PostTaserRagdoll.applyToNPCs | true | Enable ragdoll for NPCs. |
Config.PostTaserRagdoll.applyOnAdditionalShock | true | Apply ragdoll to additional shocks. |
Config.PostTaserRagdoll.applyOnContactShock | false | Apply ragdoll after contact shock. |
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β
| Setting | Current value | Description |
|---|---|---|
Config.WireBreakCheckMs | 500 | Wire break check interval in ms. |
Config.EmbeddedNeedlesDamageEnabled | true | Enable periodic damage from embedded probes. |
Config.EmbeddedNeedlesDamageIntervalMs | 60000 | Interval between damage ticks in ms. |
Config.EmbeddedNeedlesDamageHP | 5 | Health points lost per interval. |
Config.EmbeddedNeedlesMinHealth | 1 | Minimum health threshold per config; comment suggests 101 for nonlethal behavior. |
Config.MedicIntegration.enabled | false | Enable medical integration. |
Config.MedicIntegration.injuryType | 'taser_probe' | Injury type identifier. |
Urination and clothingβ
| Setting | Current value | Description |
|---|---|---|
Config.Urination.enabled | true | Enable urination feature. |
Config.Urination.chancePercent | 5 | Chance per shock in percent. |
Config.Urination.inventory | 'auto' | Inventory bridge; config comment lists tgiann, ox, esx, qb. |
Config.Urination.puddleEnabled | true | Enable puddle rendering. |
Config.Urination.decalType | 9100 | GTA decal ID; depends on game version/build. |
Config.Urination.puddleSize | 0.75 | Puddle size. |
Config.Urination.puddleLifetimeSeconds | 90.0 | Puddle 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.ProbeSurfaceOffsetand, if needed,Config.ProbeRotationCorrection. - Wire is invisible: Check
Config.DrawWireFallback,Config.WireSegmentsand color values. - Reload unexpectedly requires an item: Check
Config.RequireReloadItemand the implemented inventory bridge. - Puddle missing:
Config.Urination.decalTypemay behave differently depending on GTA build. - Ragdoll instead of animation: Check the animation dictionary and
Config.PostTaserRagdoll.
Supportβ
Questions or issues? Join our Discord.