Changing the parachute model from rainbow (p_parachute1_s) to white? (p_parachute1_sp_dec)

Hi,

I have a script where I give peds parachutes (gadget_parachute) and they para-drop. the problem is it is the default(?) rainbow colored one, which sort of does not look quite right. I want to use the white one.

Any ideas on how to make the parachute use the different model when it is deployed? I took a look at CreateWeaponObject(weaponHash, ammoCount, x, y, z, showWorldModel, heading, p7)
But that seems like it will only apply to the parachute backpack… if that even worked?

Any ideas? Thanks for any help!

1 Like

From what i could find there are a few natives about parachutes.

https://runtime.fivem.net/doc/natives/#_0xA3D0E54541D9A5E5

when i tested them though the SetPlayerParachuteTintIndex native only changed the parachute colors from 0 to 6, which seems to be only the original ones and not the ones added from the Flight School update.

1 Like

cool, that looks like what I want. Thanks!

i am not sure how to edit my color to black tho…
here is my code.

RegisterNetEvent("sl-items:client:UseParachute")
AddEventHandler("sl-items:client:UseParachute", function()
    EquipParachuteAnim()
    SL.Functions.Progressbar("use_parachute", "Utilisez un parachute..", 5000, false, true, {
        disableMovement = false,
        disableCarMovement = false,
		disableMouse = false,
		disableCombat = true,
    }, {}, {}, {}, function() -- Done
        local ped = PlayerPedId()
        TriggerEvent("sl-inventory:client:ItemBox", SL.Shared.Items["parachute"], "remove")
        GiveWeaponToPed(ped, GetHashKey("GADGET_PARACHUTE"), 1, false)
		SetPlayerParachutePackTintIndex(playerPed, 6)
        local ParachuteData = {
            outfitData = {
                ["bag"]   = { item = 32, texture = 0},  -- Nek / Das
            }
        }
        --TriggerEvent('rs-clothing:client:loadOutfit', ParachuteData)
        ParachuteEquiped = true
        TaskPlayAnim(ped, "clothingshirt", "exit", 8.0, 1.0, -1, 49, 0, 0, 0, 0)
    end)
end)

i tried the SetPlayerParachutePackTintIndex(playerPed, 6) but without success.
if anyone has an idea, that would be great :smiley:

I use this and works perfectly.

SetPedParachuteTintIndex(PlayerPedId(), 6)

Instead of

SetPlayerParachutePackTintIndex(playerPed, 6)

2 Likes

and 6= ?

0 = Rainbow
1 = dark Red
2 = white & blue & yellow
3 = Black & red & white
4 = red & white & blue
5 = blue
6 = black
7+ = black & yellow

1 Like

I have found an easier way: