Guest User

Untitled

a guest
Jul 10th, 2022
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.16 KB | None | 0 0
  1. /*
  2.  
  3.     A bunch of hooks to modify certain aspects
  4.  
  5. */
  6.  
  7. if SERVER then
  8.     /*
  9.         Called once a player sells weed on a marketplace
  10.     */
  11.     hook.Add("zgo2.Marketplace.OnCargoSold","zgo2.Marketplace.OnCargoSold.test",function(ply,MarketplaceID,cargo_name,cargo_amount,cargo_value,cargo_data)
  12.  
  13.     end)
  14.  
  15.     /*
  16.         Called once a player sells weed to the npc
  17.     */
  18.     hook.Add("zgo2.NPC.OnQuickSell","zgo2.NPC.OnQuickSell.test",function(ply,weed_id,weed_amount,weed_value)
  19.  
  20.     end)
  21.  
  22.     /*
  23.         Called once a player buys something from the multitool
  24.     */
  25.     hook.Add("zgo2.Shop.OnPurchase","zgo2.Shop.OnPurchase.test",function(ply,data)
  26.  
  27.     end)
  28.  
  29.     /*
  30.         Called once a player sells something using the multitool
  31.     */
  32.     hook.Add("zgo2.Shop.OnSell","zgo2.Shop.OnSell.test",function(ply,data,price)
  33.  
  34.     end)
  35. end
  36.  
  37. if CLIENT then
  38.     /*
  39.         Called once a marketplace receives the players cargo
  40.     */
  41.     hook.Add("zgo2.Marketplace.OnCargoUpdate","zgo2.Marketplace.OnCargoUpdate.Test",function(MarketplaceID)
  42.  
  43.     end)
  44.  
  45.     /*
  46.         Called once a transfer got succesfully created
  47.     */
  48.     hook.Add("zgo2.Marketplace.OnTransferCreated","zgo2.Marketplace.OnTransferCreated.Test",function(TransferID)
  49.  
  50.     end)
  51. end
  52.  
Add Comment
Please, Sign In to add comment