Garry's Mod
145 оценки
TylerB's Shipment E2 Functions (v1)
   
Награда
Добавяне към любими
В любими
Премахване от любими
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Roleplay
Размер на файла
Публикуван на
Обновен на
1.367 KB
17 ян. 2014 в 17:25
2 юни 2018 в 13:10
18 бележки за промени ( преглед )

Абониране, за да се свали
TylerB's Shipment E2 Functions (v1)

В 2 колекции от TylerB
boring.builders | BuildRP Content
15 артикула
boring.builders | Lawless Content
15 артикула
Описание
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 коментара
war crime andy 20 ноем. 2014 в 17:58 
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  [автор] 9 окт. 2014 в 18:44 
if you don't know how to use it it isn't useful to you.
Andywinslow 9 окт. 2014 в 18:26 
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  [автор] 9 окт. 2014 в 14:51 
Andywinslow 9 окт. 2014 в 14:19 
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  [автор] 10 юли 2014 в 2:18 
You're checking if the request completed successfully in the block that only runs when the button is pressed.
Vex 10 юли 2014 в 1:51 
Hay I am having a problem where I can't get this to work... Any ideas? http://pastebin.com/Pr2L80UM
Amos 25 май 2014 в 8:57 
Okay thx!
TylerB  [автор] 24 май 2014 в 15:57 
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 май 2014 в 4:21 
Oh.. That works?
Any specific settings I need to put the Ranger on to get he output of the shipment?