_SET_PED_EMISSIVE_INTENSITY
DocsSetPedEmissiveIntensity(ped, intensity)Description
This native sets the glow intensity of illuminated clothing items.
This native does NOT need to be executed every tick.
This native is NOT synced with other connected players, you will have to set the opacity on the ped on all clients individually.
Glow intensity is a value between 0.0 and 1.0.
In some older decompiled scripts this is known as _SET_PED_REFLECTION_INTENSITY.
Since there's no joaat hash for this, I find _SET_PED_ILLUMINATED_CLOTHING_GLOW_INTENSITY more descriptive than _SET_PED_REFLECTION_INTENSITY.
Use <code>GetPedIlluminatedClothingGlowIntensity</code> to get the illuminated clothing glow intensity of a specific ped.
Intensity: 1.0:

Intensity: 0.0:

Examples code result:

(Direct link if embed doesn't work: here)
Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The ped to set the glow intensity on. |
intensity | float | The glow intensity, value between `0.0` and `1.0`. |
Quick Snippet: Get Ped Handleped
pedUse this to get the player ped handle for this native.
-- Get the player's ped handle (client-side)
local ped = PlayerPedId()
print("Ped handle: " .. ped)
-- For a specific player's ped (server-side):
-- local targetPed = GetPlayerPed(source)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.
Examples
CreateThread(function()
local glowIntensity = 0.0
local reverse = false
while true do
Wait(100)
SetPedIlluminatedClothingGlowIntensity(PlayerPedId(), glowIntensity)
if reverse then
glowIntensity = glowIntensity - 0.05
if glowIntensity < 0.0 then
reverse = false
glowIntensity = 0.0
end
else
glowIntensity = glowIntensity + 0.05
if glowIntensity > 1.0 then
reverse = true
glowIntensity = 1.0
end
end
end
end)