Add weapon ammo wrapped natives
This commit is contained in:
@@ -648,3 +648,15 @@ function getElementModel(element) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function givePlayerWeaponAmmo(client, ammo) {
|
||||||
|
givePlayerWeapon(client, getPlayerWeapon(client), getPlayerWeaponAmmo(client) + ammo);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function getPlayerWeapon(client) {
|
||||||
|
return client.player.weapon;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user