Skip to content

Commit bd76515

Browse files
committed
new guides
1 parent c286626 commit bd76515

5 files changed

Lines changed: 175 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# Generated files
88
.docusaurus
99
.cache-loader
10+
.claude/
11+
CLAUDE.md
1012

1113
# Misc
1214
.DS_Store

guides/ammo_as_items.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
title: Ammo as Items [V3 / V4]
3+
description: Weapon Ammunition as Items
4+
sidebar_position: 2
5+
---
6+
7+
# Ammo as Items [V3 / V4]
8+
9+
We all know the issue with ESX and Weapon Ammunition. With this Script you get Ammo as Items.
10+
So if you have 10x 9mm items in your inventory you can shoot 10 times.
11+
12+
You can set as many items as you want in config.lua
13+
14+
**Github Repository:** https://github.com/MSK-Scripts/msk_weaponammoitems
15+
16+
## Config
17+
```lua
18+
Config = {}
19+
----------------------------------------------------------------
20+
Config.VersionChecker = true
21+
----------------------------------------------------------------
22+
Config.AmmoPacks = {
23+
-- ['magazine_item'] -> Upload this item into your database!
24+
-- Use those magazine items, then you get the ammo items
25+
26+
['9mm_magazine'] = {item = '9mm', amount = 12},
27+
['12gauge_magazine'] = {item = '12gauge', amount = 25},
28+
['556mm_magazine'] = {item = '556mm', amount = 30},
29+
['762mm_magazine'] = {item = '762mm', amount = 30},
30+
['68kal_magazine'] = {item = '68kal', amount = 30},
31+
}
32+
33+
Config.Ammunition = {
34+
-- If you have one of these items in your inventory you have automatically ammunition in your weapon
35+
36+
['9mm'] = { -- Upload this item into your database!
37+
'WEAPON_PISTOL',
38+
'WEAPON_PISTOL_MK2',
39+
'WEAPON_COMBATPISTOL',
40+
'WEAPON_APPISTOL',
41+
'WEAPON_PISTOL50',
42+
'WEAPON_SNSPISTOL',
43+
'WEAPON_SNSPISTOL_MK2',
44+
'WEAPON_HEAVYPISTOL',
45+
'WEAPON_VINTAGEPISTOL',
46+
'WEAPON_MARKSMANPISTOL',
47+
'WEAPON_REVOLVER',
48+
'WEAPON_REVOLVER_MK2',
49+
'WEAPON_DOUBLEACTION',
50+
'WEAPON_CERAMICPISTOL',
51+
'WEAPON_NAVYREVOLVER',
52+
'WEAPON_GADGETPISTOL',
53+
},
54+
['12gauge'] = { -- Upload this item into your database!
55+
'WEAPON_PUMPSHOTGUN',
56+
'WEAPON_PUMPSHOTGUN_MK2',
57+
'WEAPON_SAWNOFFSHOTGUN',
58+
'WEAPON_ASSAULTSHOTGUN',
59+
'WEAPON_BULLPUPSHOTGUN',
60+
'WEAPON_HEAVYSHOTGUN',
61+
'WEAPON_DBSHOTGUN',
62+
'WEAPON_AUTOSHOTGUN',
63+
'WEAPON_COMBATSHOTGUN',
64+
},
65+
['556mm'] = { -- Upload this item into your database!
66+
'WEAPON_MICROSMG',
67+
'WEAPON_SMG',
68+
'WEAPON_SMG_MK2',
69+
'WEAPON_ASSAULTSMG',
70+
'WEAPON_COMBATPDW',
71+
'WEAPON_MACHINEPISTOL',
72+
'WEAPON_MINISMG',
73+
},
74+
['762mm'] = { -- Upload this item into your database!
75+
'WEAPON_ASSAULTRIFLE',
76+
'WEAPON_ASSAULTRIFLE_MK2',
77+
'WEAPON_CARBINERIFLE',
78+
'WEAPON_CARBINERIFLE_MK2',
79+
'WEAPON_ADVANCEDRIFLE',
80+
'WEAPON_SPECIALCARBINE',
81+
'WEAPON_SPECIALCARBINE_MK2',
82+
'WEAPON_BULLPUPRIFLE',
83+
'WEAPON_BULLPUPRIFLE_MK2',
84+
'WEAPON_COMPACTRIFLE',
85+
'WEAPON_MILITARYRIFLE',
86+
'WEAPON_HEAVYRIFLE',
87+
'WEAPON_TACTICALRIFLE',
88+
'WEAPON_SNIPERRIFLE',
89+
'WEAPON_HEAVYSNIPER',
90+
'WEAPON_HEAVYSNIPER_MK2',
91+
'WEAPON_MARKSMANRIFLE',
92+
'WEAPON_MARKSMANRIFLE_MK2',
93+
'WEAPON_PRECISIONRIFLE',
94+
},
95+
['68kal'] = { -- Upload this item into your database!
96+
'WEAPON_MUSKET',
97+
'WEAPON_MG',
98+
'WEAPON_COMBATMG',
99+
'WEAPON_COMBATMG_MK2',
100+
'WEAPON_GUSENBERG',
101+
},
102+
}
103+
```
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Fix for throwables not updating
3+
description: Fix for throwables not updating
4+
sidebar_position: 4
5+
---
6+
7+
# Fix for throwables not updating
8+
9+
In order to fix this issue head over to `es_extended/client/main.lua` `~385`
10+
11+
**Look for this:**
12+
```lua
13+
if IsPedArmed(ESX.PlayerData.ped, 4) then
14+
if IsPedShooting(ESX.PlayerData.ped) then
15+
local _,weaponHash = GetCurrentPedWeapon(ESX.PlayerData.ped, true)
16+
local weapon = ESX.GetWeaponFromHash(weaponHash)
17+
18+
if weapon then
19+
currentWeapon.name = weapon.name
20+
currentWeapon.hash = weaponHash
21+
currentWeapon.timer = 100 * sleep
22+
end
23+
end
24+
else
25+
sleep = 200
26+
end
27+
```
28+
29+
**Replace the code above with this one.**
30+
```lua
31+
if IsPedShooting(ESX.PlayerData.ped) then
32+
local _,weaponHash = GetCurrentPedWeapon(ESX.PlayerData.ped, true)
33+
local weapon = ESX.GetWeaponFromHash(weaponHash)
34+
35+
if weapon then
36+
currentWeapon.name = weapon.name
37+
currentWeapon.hash = weaponHash
38+
currentWeapon.timer = 100 * sleep
39+
end
40+
end
41+
```

guides/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sidebar_position: 1
33
slug: /
44
---
55

6-
# Guides
6+
# Welcome to Guides Section
77

88
Welcome to the Guides section of the Chezza Documentation.
99

guides/search_function.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Search Function for jobs [V3 / V4]
3+
description: Search Function for jobs
4+
sidebar_position: 3
5+
---
6+
7+
# Search Function for jobs [V3 / V4]
8+
9+
In order to change the default search function from `esx_policejob` head over to `esx_policejob/client/main.lua` `~285`
10+
11+
**Look for this:**
12+
13+
```lua
14+
elseif action == 'search' then
15+
OpenBodySearchMenu(closestPlayer)
16+
```
17+
18+
**Replace the code above with this one:**
19+
```lua
20+
elseif action == 'search' then
21+
TriggerEvent('inventory:openPlayerInventory', GetPlayerServerId(closestPlayer))
22+
```
23+
24+
**For V4 replace with this one if you want to receive weapons:**
25+
```lua
26+
elseif action == 'search' then
27+
TriggerEvent('inventory:openPlayerInventory', GetPlayerServerId(closestPlayer), true)
28+
```

0 commit comments

Comments
 (0)