Persistent flashlight & Manual reload

Is there anyone willing to make these scripts http://www.lcpdfr.com/files/file/15250-persistent-weapon-flashlight/ & https://www.gta5-mods.com/scripts/manual-reload if so that would be amazing. Thanks.

You cant make them due to the limitation of the API in its current state.

1 Like

Unfortunately, xander1998 is right. It is impossible to make them in their current state. Although, it would be so cool to see.

Alright good to know thanks.

Are these possible to be made now? since its been almost a year since this was posted.

No. You cant edit memory like the code in SP does in the scripting environment.

… I just want me flashlight to always be on why doesn’t anyone love me? :sob:

Randomly found this while trying to see if possible to over-write the reloading animation,

I found these natives that might be useful for the cancel reload to be a possibility

IsPedShooting(ped)
IsPedReloading(ped)
MakePedReload(ped)
PedSkipNextReloading(ped)
GetAmmoInClip(ped, weaponhash)
GetAmmoInPedWeapon(ped, weaponhash)
SetAmmoInClip(ped, weaponHash, ammo)
SetPedAmmo(ped, weaponHash, ammo)
SetPedAmmoByType(ped, ammoType, ammo)

Seems completely do-able checking control pressed to actually reload but might not be as exact as the video :smiley:

:thinking: If this is the case the Stun Gun should also have a flashlight ability!

Would still personally like to see both these scripts made FiveM compatible if it is indeed possible.

There could theoretically be a way, if you were to script a spotlight at the “bone” end of the gun, it wouldn’t look perfect in anyway, but it does the job.

I believe this is a possibility now as DOJRP did this with the flashlight.

1 Like

Does anyone know how to make it is the question?

Can you make it now? Since Its been 2 years?

Hey, if you still wanted it, i found an amazing resource, it includes a fire rate/safety script also, if you don’t want it you just have to mess around with the config [Release] Weapons Resource

1 Like

Yassss, This has the persistent flashlight feature.!!! Is Inferno (ChristopherM) a developer in DoJRP or something?

im not sure. I would love to know how to remove the fire rate system of this script though, it shoots sway too slow for my liking. hmu if u know how to just have the flashlight [Release] Weapons Resource