RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _SET_PED_TORCH_VFX_COLOR

_SET_PED_TORCH_VFX_COLOR

The native WILL NOT WORK if the specific component containing the VFX node is not equipped on the ped (e.g., the torch outfit -368114487 must be equipped first via _EQUIP_META_PED_OUTFIT). It only colors the smoke/volumetrics, leaving the core fire sprites untouched. Values greater than 1.0f are clamped to 1.0f by the engine. To achieve specific RGB shades, you MUST normalize 0-255 values by dividing them by 255.0f (e.g., 128 becomes 0.5f)

PEDBuild 1207

Signature

lua
SetPedTorchVfxColor(PlayerPedId(), GetHashKey("..."), 0.0, 0.0, 0.0)
-- returns void

Parameters

NameTypeDescription
Ped—
Hash—
float—
float—
float—

Usage

Named call
SetPedTorchVfxColor(PlayerPedId(), GetHashKey("..."), 0.0, 0.0, 0.0)
InvokeNative
Citizen.InvokeNative(0xDD9540E7B1C9714F, PlayerPedId(), GetHashKey("..."), 0.0, 0.0, 0.0)
lua 1
RegisterCommand("testcolor", function()
  
        local playerPed = PlayerPedId()
        local horse = GetMount(playerPed)

        if  horse ~= 0 then
            local outfitHash = -368114487
            Citizen.InvokeNative(0x1902C4CFCC5BE57C, horse, outfitHash)
            Citizen.InvokeNative(0x704C908E9C405136, horse)

            Wait(500)

            local componentHash = -929362906
            local r, g, b = 1.0, 0.0, 0.0

            Citizen.InvokeNative(0xDD9540E7B1C9714F, horse, componentHash, r, g, b)
        end
end, false)

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details