diff --git a/scripts/server/native/connected.js b/scripts/server/native/connected.js index 7f855eb3..576bc54c 100644 --- a/scripts/server/native/connected.js +++ b/scripts/server/native/connected.js @@ -1013,4 +1013,11 @@ function setVehicleHealth(vehicle, health) { vehicle.health = 1000; } +// =========================================================================== + +function givePlayerWeapon(client, weaponId, ammo, active = true) { + logToConsole(LOG_DEBUG, `[VRR.Client] Sending signal to ${getPlayerDisplayForConsole(client)} to give weapon (Weapon: ${weaponId}, Ammo: ${ammo})`); + sendNetworkEventToPlayer("vrr.giveWeapon", client, weaponId, ammo, active); +} + // =========================================================================== \ No newline at end of file