Garry's Mod
Оценок: 145
TylerB's Shipment E2 Functions (v1)
   
Наградить
В избранное
В избранном
Удалить
Тип контента: Дополнение
Тип дополнения: Инструмент
Метки дополнений: Стройка, Ролевая игра
Размер файла
Добавлен
Изменён
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?