Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pistolTypeGroups = {
- [416676503] = 'pistol',
- [-957766203] = 'micro_smg',
- [970310034] = 'assault_rifle',
- [-1212426201] = 'sniper_rifle',
- [-728555052] = 'unarmed',
- [860033945] = 'shotgun',
- [-1569042529] = 'rpg',
- [1548507267] = 'grenade',
- [1159398588] = 'heavy_guns', --MG
- }
- --Example
- local currentPedWeapon = GetSelectedPedWeapon(ped)
- local slot = GetWeapontypeGroup(currentPedWeapon)
- local slotName = pistolTypeGroups[slot]
- if slotName == 'pistol' then
- print('He has some pistol')
- end
Advertisement
Add Comment
Please, Sign In to add comment