script.run_in_callback(function()
local hangarprop = 1845274 + 1 + 260 + 298 -- Hangar Property ID
local session = ScriptGlobal(2655293):get_int()
if session == -1 then
return notify.info("Script By Danza", "Please join any freemode session and reload the script.")
end
if ScriptGlobal(hangarprop):get_int() < 1 then
return notify.error("Script By Danza", "You don't own a Hangar.")
end
local hangar_stock = ScriptGlobal(hangarprop + 3):get_int()
if hangar_stock > 49 then
return notify.warn("Oops!", "Hangar is at max capacity.")
end
-- Cargo setup: 6 = Narcotics | 5 = Medical Supplies | 4 = Jewelry & Gemstones | 3 = Animal Materials | 2 = Animal Materials
-- These values are kind of wonky. Most times they give what they're supposed to, but there is times that it doesn't.
-- It will be all of one item though.
ScriptGlobal(hangarprop + 6):set_int(50) -- Set Hangar stock to 50 locally
ScriptGlobal(1882440 + 7):set_int(6) -- Cargo type
ScriptGlobal(1882440 + 6):set_int(50) -- Crate amount
ScriptGlobal(2708201):set_int(1)
stats.set_packed_bool(36828, true)
notify.success("Success!", "Hangar goods replenished and sourced (Narcotics)!")
end)