Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script Gear Changing Script Animation

Talhaaaa

Silver Elite
Joined
Mar 6, 2022
Messages
15
Reaction score
187
Points
256
Location
Pakistan
It’s my first ever script on FiveM so kindly tell me the improvements I could make in it.

It’s a very standard script which plays the animation when a gear is changed.

You may check out this script here:


Download:
 

PAPA_MUNDO

Gold Elite
Joined
Dec 14, 2022
Messages
125
Reaction score
750
Points
316
Location
Amsterdam
It’s my first ever script on FiveM so kindly tell me the improvements I could make in it.

It’s a very standard script which plays the animation when a gear is changed.

You may check out this script here:


Download:
*** Hidden text: cannot be quoted. ***
use this inside your script man i added the bone so its holding the poke

function PlayGearChangeAnimation(gear) RequestAnimDict(animationDict) while not HasAnimDictLoaded(animationDict) do Citizen.Wait(0) end TaskPlayAnimAdvanced(PlayerPedId(), animationDict, animationName, GetEntityBoneIndexByName(PlayerPedId(), "IK_R_Hand"), 0.0, 0.0, 0.0, -- Position offsets 0.0, 0.0, 0.0, -- Rotation offsets 1.0, -- Blend in speed 1.0, -- Playback speed -1, -- Looping (-1 for no looping) 0, -- Flags 0.0 -- Timeout in seconds ) Citizen.Wait(animationDuration) StopAnimTask(PlayerPedId(), animationDict, animationName, 1.0) end
 
Last edited:

Talhaaaa

Silver Elite
Joined
Mar 6, 2022
Messages
15
Reaction score
187
Points
256
Location
Pakistan
use this inside your script man i added the bone so its holding the poke

function PlayGearChangeAnimation(gear) RequestAnimDict(animationDict) while not HasAnimDictLoaded(animationDict) do Citizen.Wait(0) end TaskPlayAnimAdvanced(PlayerPedId(), animationDict, animationName, GetEntityBoneIndexByName(PlayerPedId(), "IK_R_Hand"), 0.0, 0.0, 0.0, -- Position offsets 0.0, 0.0, 0.0, -- Rotation offsets 1.0, -- Blend in speed 1.0, -- Playback speed -1, -- Looping (-1 for no looping) 0, -- Flags 0.0 -- Timeout in seconds ) Citizen.Wait(animationDuration) StopAnimTask(PlayerPedId(), animationDict, animationName, 1.0) end
Can you send it in my DM's?
 
Top