Garry's Mod

Garry's Mod

145 ratings
TylerB's Shipment E2 Functions (v1)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Roleplay
File Size
Posted
Updated
1.367 KB
17 Jan, 2014 @ 5:25pm
2 Jun, 2018 @ 1:10pm
18 Change Notes ( view )

Subscribe to download
TylerB's Shipment E2 Functions (v1)

In 2 collections by TylerB
boring.builders | BuildRP Content
15 items
boring.builders | Lawless Content
15 items
Description
Ever wanted to make an "intelligent" gun shop? With this addon, you can do many cool things:

IMPORTANT NOTE: Most functions can take either an entity or a string - Entities are the shipment box entity, and strings are either the name of the shipment, or the class of the weapon inside. (e.g weapon_deagle2)


ent:shipmentName() / shipmentName(str) - Returns the name of the shipment. Something like "Pump shotgun".
ent:shipmentType() / shipmentType(str) - Returns the class of the weapon inside. Something like "weapon_ak47".
ent:shipmentSeparate() / shipmentSeparate(str) - Returns whether or not the shipment is available as singles.
ent:shipmentPriceSep() / shipmentPriceSep(str) - Returns the price of the individual gun.
ent:shipmentPrice() / shipmentPrice(str) - Returns the price of the shipment.
ent:shipmentAmount() - Returns the number of weapons remaining in the shipment.
ent:shipmentSize() / shipmentSize(str) - Returns the default number of weapons in the shipment.
ent:shipmentModel() / shipmentModel(str) - Returns the model of the weapon.
ent:isShipment() - Returns whether the entity is a shipment or not. (equivalent to ent:type() == "spawned_shipment")


Have an error to report? Leave a comment below!

Goes well with my moneyRequest() - E2 Functions for DarkRP addon.

Facepunch thread[facepunch.com]
GitHub[github.com]

91 Comments
war crime andy 20 Nov, 2014 @ 5:58pm 
This looks interesting, but do you know of any servers that, actually allow you to use E2 on DarkRP? :greenwizard: Also, @ANDREW KILLER, this is for the Wiremod Tool 'Expression Two', which alllows for players to code their own script-like tools, for making mechs, etc. NOT a console tool. :cfacepalm:
TylerB  [author] 9 Oct, 2014 @ 6:44pm 
if you don't know how to use it it isn't useful to you.
Andywinslow 9 Oct, 2014 @ 6:26pm 
i said to you i have a hard time use the mods i download it i dont know if I need to put it in console or type text or that I need a addon mod i just want to know how to use the mod you made.
TylerB  [author] 9 Oct, 2014 @ 2:51pm 
Andywinslow 9 Oct, 2014 @ 2:19pm 
hi tylerB i dont know what i am doing i put the word in 2 way and is dont not work why do you tell me these it work on console of type text.
TylerB  [author] 10 Jul, 2014 @ 2:18am 
You're checking if the request completed successfully in the block that only runs when the button is pressed.
Vex 10 Jul, 2014 @ 1:51am 
Hay I am having a problem where I can't get this to work... Any ideas? http://pastebin.com/Pr2L80UM
Amos 25 May, 2014 @ 8:57am 
Okay thx!
TylerB  [author] 24 May, 2014 @ 3:57pm 
Output Entity+EntID

In the e2, you'd do @inputs E:entity

Wire E to the output on the ranger, and then, in the E2:

print(E:shipmentName())
Amos 24 May, 2014 @ 4:21am 
Oh.. That works?
Any specific settings I need to put the Ranger on to get he output of the shipment?