KingDanzaV1

Hangar Resupply

Nov 12th, 2025
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. script.run_in_callback(function()
  2.     local hangarprop = 1845274 + 1 + 260 + 298  -- Hangar Property ID
  3.     local session = ScriptGlobal(2655293):get_int()
  4.  
  5.     if session == -1 then
  6.         return notify.info("Script By Danza", "Please join any freemode session and reload the script.")
  7.     end
  8.  
  9.     if ScriptGlobal(hangarprop):get_int() < 1 then
  10.         return notify.error("Script By Danza", "You don't own a Hangar.")
  11.     end
  12.  
  13.     local hangar_stock = ScriptGlobal(hangarprop + 3):get_int()
  14.     if hangar_stock > 49 then
  15.         return notify.warn("Oops!", "Hangar is at max capacity.")
  16.     end
  17.     -- Cargo setup: 6 = Narcotics | 5 = Medical Supplies | 4 = Jewelry & Gemstones | 3 = Animal Materials | 2 = Animal Materials
  18.     -- These values are kind of wonky. Most times they give what they're supposed to, but there is times that it doesn't.
  19.     -- It will be all of one item though.
  20.     ScriptGlobal(hangarprop + 6):set_int(50) -- Set Hangar stock to 50 locally
  21.     ScriptGlobal(1882440 + 7):set_int(6)   -- Cargo type
  22.     ScriptGlobal(1882440 + 6):set_int(50)  -- Crate amount
  23.     ScriptGlobal(2708201):set_int(1)
  24.     stats.set_packed_bool(36828, true)
  25.     notify.success("Success!", "Hangar goods replenished and sourced (Narcotics)!")
  26. end)
  27.  
Advertisement
Add Comment
Please, Sign In to add comment