Exports
Heal and armour
AllowHeal and AllowArmour, for scripts that set health or armour directly.
AllowHeal and AllowArmour (server)
Call before your script heals a player or gives armour. The allowance lasts ms milliseconds; armour allowances last at most 60 seconds.
exports.HydraAC:AllowArmour(source, 5000)
SetPedArmour(GetPlayerPed(source), 100)
exports.HydraAC:AllowHeal(source, 5000)Use them in duty vests, paintball and arenas, buffs, and admin menus' heal buttons.
Client versions
pcall(function() exports.HydraAC:AllowHeal(3000) end)
pcall(function() exports.HydraAC:AllowArmour(3000) end)Client allowances last at most 5 seconds and are rate limited. Prefer the server exports.
Heals and armour from inventory items need no code: Hydra reads them from your inventory. See Heal and armour items.