Main/resources/[carscripts]/slashtires/bridge/inventory/standalone/server.lua

30 lines
1,017 B
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
---Checks if the player has the weapon item specified
---@param source string
---@param weaponHash integer
---@return boolean hasWeapon
function HasWeapon(source, weaponHash)
-- Always return true, as we already know the player has the weapon
return true
end
---Removes the weapon from the player
---@param source string
---@param weaponHash integer
---@param playerPed integer
---@return boolean success
function RemoveWeapon(source, weaponHash, playerPed)
RemoveWeaponFromPed(playerPed, weaponHash)
return true
end
---Reduces durability for the weapon
---@param source string
---@param weaponHash integer
---@param playerPed integer
---@return boolean removedWeapon If the weapon was removed due to durability going below 0
function ReduceDurabilityForWeapon(source, weaponHash, playerPed)
-- This is just a void function that does nothing, add some code below if you use an inventory that isn't already supported or change Config.Framework!
return false
end