Semi Automatic Gun's Script

I’m trying to look for a single fire/semi-auto script for my fivem server. I just want a simple script that makes all full auto weapons single fire (so every click shoots a bullet) can someone help me find one? I’ve been looking everywhere and can’t seem to find anything. Thanks.

Also not a feature request, moved

Sorry my bad could you move it for me haha big ooof

I’m not sure if tou could change this dynamicaly, but you can override the default ingame weapons.meta (grab it out of the game with OpenIV) and add that to a resource somewhere and add this to the __resource.lua:

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
 
files {
    'weapons.meta'
}
 
data_file 'WEAPONINFO_FILE_PATCH' 'weapons.meta'

Then in the weaponFlags in the weapons.meta under the gun you want to change simply remove the Automatic flag. So like this (grabbed the flags from WEAPON_CARBINERIFLE):
<WeaponFlags>CarriedInHand Automatic Gun CanLockonOnFoot CanLockonInVehicle CanFreeAim TwoHanded AnimReload AnimCrouchFire UsableOnFoot UsableInCover AllowEarlyExitFromFireAnimAfterBulletFired NoLeftHandIKWhenBlocked AllowCloseQuarterKills HasLowCoverReloads HasLowCoverSwaps LongWeapon UseFPSAimIK UseFPSSecondaryMotion</WeaponFlags>
becomes:
<WeaponFlags>CarriedInHand Gun CanLockonOnFoot CanLockonInVehicle CanFreeAim TwoHanded AnimReload AnimCrouchFire UsableOnFoot UsableInCover AllowEarlyExitFromFireAnimAfterBulletFired NoLeftHandIKWhenBlocked AllowCloseQuarterKills HasLowCoverReloads HasLowCoverSwaps LongWeapon UseFPSAimIK UseFPSSecondaryMotion</WeaponFlags>

That should do it.