Skip to content

Commit

Permalink
Reverting a few more things
Browse files Browse the repository at this point in the history
Fixing a few more things that I forgot to revert
  • Loading branch information
Demo4889 authored Jan 12, 2022
1 parent ca5fb51 commit ff75d3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ WeaponAttachments = {
item = 'revolver_vipvariant',
type = 'skin',
},
['bossvariant'] = {
['bodyguardvariant'] = {
component = 'COMPONENT_REVOLVER_VARMOD_BOSS',
item = 'revolver_bossvariant',
item = 'revolver_bodyguardvariant',
type = 'skin',
},
},
Expand Down
20 changes: 12 additions & 8 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -286,30 +286,34 @@ end, "god")
-- Items

-- AMMO
QBCore.Functions.CreateUseableItem('ammo_pistol', function(source, item)
QBCore.Functions.CreateUseableItem('pistol_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_PISTOL', 12, item)
end)

QBCore.Functions.CreateUseableItem('ammo_rifle', function(source, item)
QBCore.Functions.CreateUseableItem('rifle_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_RIFLE', 30, item)
end)

QBCore.Functions.CreateUseableItem('ammo_smg', function(source, item)
QBCore.Functions.CreateUseableItem('smg_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_SMG', 20, item)
end)

QBCore.Functions.CreateUseableItem('ammo_shotgun', function(source, item)
QBCore.Functions.CreateUseableItem('shotgun_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_SHOTGUN', 10, item)
end)

QBCore.Functions.CreateUseableItem('ammo_mg', function(source, item)
QBCore.Functions.CreateUseableItem('mg_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_MG', 30, item)
end)

QBCore.Functions.CreateUseableItem('ammo_sniper', function(source, item)
QBCore.Functions.CreateUseableItem('snp_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_SNIPER', 10, item)
end)

QBCore.Functions.CreateUseableItem('emp_ammo', function(source, item)
TriggerClientEvent('weapon:client:AddAmmo', source, 'AMMO_EMPLAUNCHER', 10, item)
end)

-- TINTS
QBCore.Functions.CreateUseableItem('weapontint_black', function(source)
TriggerClientEvent('weapons:client:EquipTint', source, 0)
Expand Down Expand Up @@ -416,8 +420,8 @@ QBCore.Functions.CreateUseableItem('revolver_vipvariant', function(source, item)
TriggerClientEvent('weapons:client:EquipAttachment', source, item, 'vipvariant')
end)

QBCore.Functions.CreateUseableItem('revolver_bossvariant', function(source, item)
TriggerClientEvent('weapons:client:EquipAttachment', source, item, 'bossvariant')
QBCore.Functions.CreateUseableItem('revolver_bodyguardvariant', function(source, item)
TriggerClientEvent('weapons:client:EquipAttachment', source, item, 'bodyguardvariant')
end)

QBCore.Functions.CreateUseableItem('snspistol_defaultclip', function(source, item)
Expand Down

0 comments on commit ff75d3e

Please sign in to comment.