[Release] Weapons Resource

, ,

hi

when this is done, the animation does not last long

Are you refering to this issue?

If so, could you post some more info there please, because we are unable to repo it.

Here you go mate. It’s an Alpha build, so keep that in mind, but in our testing, it works :slight_smile:

This script works with the weapons as items? ā€œfor some nice inventories the weapons are as itemsā€

Ye, works fine with it

1 Like

Any way to get this too work with weapons inside of vehicles

What about the Weapon_flashlight does the light continue to remain on similar to the attachment?

Yup, just remove this line and it’s corosponding end. We haven’t tested this though, fyi.

No we’ve just done flashlight attachments at the moment, but we can definitely look into this as well.

Hi ! Just tested the script, and i wanted to ask is this normal when i press the reload button it takes times to reload ? Like 1-2 seconds to activate the animation and the reload.

from what i saw in youtube video they added 1-2 second to reload time

Do you know how to disable it maybe ?

Just Look into The Code And Search for reload you will find it easily

Well i tried and i find lot of things about reloading but can’t understand anything from that lol

It Should be in this line(click to open github)
You can Change Citizen.Wait(ms) to adjust the time that player needs to wait for reload

1 Like

gonna try

This is intentional, to add realism.

Yup, exactly right :+1:

1 Like

Hey, this script is great! I’ve been trying to make it so if ithe weapon is under ā€˜full’ if I can make it only have the safety and automatic modes? I’ve tried to do it but I can’t work out how to.

Hey, this is awesome. Especially the way it made the flashlight carry into a perfect circle. Is there a way to change the distance that light can go? Hey…you could make an amazing flashlight script :).

You’d need a seperate section for that needing it’s own code. I’ll write up a Wiki page on how to do that for you.

You sure can:

DrawSpotLight(FlashlightPosition, FlashlightEndPosition, 255, 255, 255, 40.0, 2.0, 2.0, 10.0, 15.0)

Change the 40.0 after the 255 to anything you want, just make sure to put .0 at the end.

Here you are, try this. Let me know if you have any troubles.