Knowledge from the fieldRedM

SetEntityAlpha on a draft wagon doesn't fade hitched horses or reins — enumerate harness peds + HideHorseReins

learning:73

SetEntityAlpha on a draft wagon doesn't fade hitched horses or reins — enumerate harness peds + HideHorseReins

Context

Fading a draft vehicle (wagon/cart) with SetEntityAlpha leaves its hitched horses and the reins at full opacity. You must fade the horses individually and hide the reins separately.

The pattern

local model = GetEntityModel(vehicle)
local count = GetNumDraftVehicleHarnessPed(model)        -- 0x5B1A26BB18E7D451 ; takes the MODEL hash
for i = 0, count - 1 do
  local horse = GetPedInDraftHarness(vehicle, i)         -- 0xA8BA0BAE0173457B ; takes the VEHICLE handle
  SetEntityAlpha(horse, alpha, false)
end
HideHorseReins(vehicle)                                  -- 0x201B8ED4FF7FE9F5 ; reins can't be alpha-faded

Trap

Mismatched arg types: GetNumDraftVehicleHarnessPed takes the model hash, while GetPedInDraftHarness takes the vehicle handle. And reins ignore alpha entirely — use HideHorseReins.

Verified

entity/client.lua:78-85.

Linked natives

  • _GET_NUM_DRAFT_VEHICLE_HARNESS_PED (0x5B1A26BB18E7D451)
  • _GET_PED_IN_DRAFT_HARNESS (0xA8BA0BAE0173457B)
  • _HIDE_HORSE_REINS (0x201B8ED4FF7FE9F5)

Tags: vehicle, draft-wagon, setentityalpha, horse, reins, fade
Category: natives
Source: jo_libs-fleet
Created: 2026-05-31T09:43:41.443Z

Back to documentation