Garry's Mod

Garry's Mod

TylerB's moneyRequest E2 Functions (v1)
86 則留言
Talvez 1 月 4 日 上午 9:12 
Hi, i'm having troubles using the money request, even on a successfull request its not returning 1 on moneyClk() function
Roxieboy16 2024 年 8 月 1 日 下午 10:28 
is there a tutorial + example to use these functions
PaRaDiS3312 2020 年 9 月 29 日 上午 8:56 
Any way to increase the size of the request window so people can actually see the amount you're requesting?
Brumble 2020 年 6 月 16 日 上午 9:28 
I've literally tried everything I can at the moment, various different methods and when I press the button, it just starts the game rather than requests money first..
Brumble 2020 年 6 月 16 日 上午 9:15 
I'm trying to make it a player has to press E on a wire button and then it requests the money.

I've got Button:entity in my @inputs and I have @trigger at the bottom.

if(Button){
moneyRequest(Button, 10000, 30, "Play")
}

if(moneyClk()){Gamestart, Ready}

This is as far as I've got.

I just can't get it to work no matter how many times I try and use a function to "play" the game once you've pressed the start button and paid.
BUB-1 2020 年 1 月 5 日 下午 1:21 
СЛОЖНА СЛОЖНА БЛЯТЬ ЧТО ЭТА ЗА ХУЙНЯ
PROXIMITY 2019 年 6 月 21 日 下午 7:03 
Hey LittleBladed, you can check https://pastebin.com/bMT11CFw , which I posted for a user earlier in this thread.
LittleBladed 2019 年 4 月 15 日 上午 5:02 
Hey there!

Is there anyone here that can code in expression 2?
I would need someone to code me a small code that would allow me to do the following with e2 and the tylerb's moneyrequest addon.

!rq *amount* *player* would request the *amount* to the *player*

!gv *amount* *player* would give the *amount* to *player*

Thank you to anyone that would be willing to do this.
some weirdo 2018 年 12 月 16 日 上午 11:00 
I want to make a MobilePay replica using this. But I'm bad at LUA :/
some weirdo 2018 年 12 月 16 日 上午 11:00 
I wish I knew how to redesign this :(
PROXIMITY 2018 年 12 月 5 日 上午 6:10 
Hey Friend moat.gg, here's a simple 1 liner

@name GiveMoneyToAllPlayers

foreach (Key, Ply:entity = players()) { moneyGive(Ply,10) }
Swedish Submarine 2018 年 12 月 4 日 下午 4:01 
How would i do moneyGive(*all*, 500)) like how would i select everyone on the server
PROXIMITY 2018 年 9 月 12 日 下午 12:37 
If you can explain exactly what the chip needs to do I can make one for you and you can see
Riggs 2018 年 9 月 10 日 上午 4:20 
if it was accepted
Riggs 2018 年 9 月 10 日 上午 4:19 
and i want it to trigger a output (Fire)
Riggs 2018 年 9 月 10 日 上午 4:18 
I want to make a push button (not EPG) and i want it to trigger a money request what do i put?
Aydan 2018 年 6 月 10 日 下午 3:36 
Alrighty Thank you!!
PROXIMITY 2018 年 6 月 10 日 上午 6:31 
Not at all, expressions allow you to manipulate game data in runtime, with current entities and objects.
What you can do tho is make a "Pending Transaction" table, which containts arrays of transactions to execute once a player comes online. Let me explain:
Create a table, save it in a textfile via e2. the table data will look something like this.
"Pending Transactions" -Table
[STEAM_1:1:42596539][Give][500] - Array within table/Row Item
[STEAM_1:1:32526757][Request][545] - Array within table/Row Item
Where, [Player Entity SteamID][Order to give][Amount].

This way you can spawn this chip that checks when a player connects(with something like lastconnectedclk(), idk cant remember), and match that player's steamID to all the steam ID's within your table, if there is a match, check the order and request or give the specified amount. And you can also add people to that queue in the Table, once an order has been completed remove that index in the table.
Aydan 2018 年 6 月 9 日 下午 1:43 
Using moneyGive(ply, amount) is there a way to send money to offline users using their steamid as a string?
Aydan 2018 年 5 月 27 日 下午 4:04 
Thanks you, Much Appreciated,
PROXIMITY 2018 年 5 月 26 日 下午 3:46 
Hey ★Aydan★,
so basically what happens is when you want to assign the player entity, what that code does it checks the string for players with names that have more than one word, currently !send <playername> <amout> will check the player name before the amount, which means that the 3rd index in the string might be part of the name and not the amount. So you would typically have the player name be put last, like !send <amount> <playername> . This way you can ensure that the second word will always be an amount and all the words following will be the player's name.

Here is a simplified version I made, you can do with it as you please:
Pastebin Link [pastebin.com]

With this chip you could simply type !payName all <playername> to send them all your cash, you could replace the amount with the word 'all'.
Aydan 2018 年 5 月 25 日 下午 8:15 
how could one directly give someone money with chat commands like !send (player) (ammount), i cant get it https://pastebin.com/w5a1NdLJ
PROXIMITY 2018 年 4 月 26 日 下午 4:05 
Here you go Noel, I made it as easy to understand as I can.
Pastebin Link [pastebin.com]
Noel 2018 年 4 月 22 日 下午 2:06 
how to request for all money what he have from someone?
Magic Gonads 2018 年 2 月 24 日 下午 4:56 
It's nice you keep supporting this project, I haven't been able to test it because the servers I play on really dislike e2 because they're not savvy enough with it to ensure it's not being abused.
Aydan 2018 年 2 月 24 日 下午 12:59 
i need some help with some code on my e2, ( i want it to be private ,could you add me )
TylerB  [作者] 2018 年 2 月 24 日 下午 12:08 
I can add that, if you want.
[13th] Void 2018 年 1 月 4 日 上午 9:23 
Can you add a cvar to disable moneyGive because if two clients are prop buddies then the other friend and just do moneyGive and take all of the other persons money.
Heisenberg 2017 年 11 月 4 日 下午 4:57 
hi! how do i make a max moneyrequest? like max 1000000 or lower????
Magic Gonads 2017 年 9 月 10 日 上午 2:27 
Tyler this is very nice :)
TylerB  [作者] 2017 年 9 月 9 日 下午 4:09 
erm; what?
Kiong 2017 年 8 月 26 日 上午 6:03 
can you make a .txt file not a lua?
TylerB  [作者] 2017 年 8 月 8 日 下午 12:05 
Addon has been updated, fixed potential money exploit, and made it so having insufficient funds calls moneyNoClk() rather than just ending.
vroom vroom 2017 年 3 月 9 日 上午 3:22 
im trying to use this for an auto gunstore but, on my egp screen, when I click E nothing happens
can you help me?

http://pastebin.com/RLZ8GXwx
Nysxl 2017 年 3 月 5 日 上午 1:41 
i have the code write, and it says ive been given the money but my money doesnt increase, it doesnt take money from anyone's wallet and i dont recieve money.... how do i fix this
󠁳⁧⁧ Hydrogen 2016 年 11 月 10 日 上午 11:46 
Why isnt there something like moneyNoMoney() because moneyNoClk() doesnt work if someone doesnt have enough money to pay. This can cause the E2 to bug out.
Vaqxai 2016 年 10 月 23 日 上午 9:32 
It's amazing. Thank You!
Undefined 2016 年 7 月 25 日 下午 3:05 
Hello, I really like the idea of your addon, there's a big problem tho, after pressing the accept or deny button, the code resets itself, which isn't something "natural" to say.
Can something be done about it or it is intended?
vShazerJr 2016 年 7 月 18 日 下午 7:25 
Love it!
Hagrid 2016 年 3 月 9 日 下午 11:51 
So, will this be made for expadv2 one day? :D
rako 2015 年 11 月 14 日 下午 4:04 
Try creating the Button:entity input and linking it to the button, then, in moneyRequest() use button:name() instead of owner()
BareMaxx 2015 年 10 月 25 日 下午 1:35 
What should i write insted of Owner because when peoble press my button my e2 askes me insted of them and i i write Button isted of owner it dosen't work?
Flatbrained Koala 2015 年 10 月 22 日 上午 6:49 
how do i use it?
TylerB  [作者] 2015 年 7 月 9 日 下午 12:43 
should work fine anyway, those are just e2help definitions
KingDaddleDingo 2015 年 7 月 8 日 下午 11:15 
i get this in console

[AddCSLuaFile] Couldn't find 'cl_moneyrequest_tylerb.lua' (@entities/gmod_wire_expression2/core/custom/sv_moneyrequest_tylerb.lua (line 14))
Loaded TylerB's money e2 functions.
L 07/09/2015 - 01:11:17: Lua Error: [AddCSLuaFile] Couldn't find 'cl_shipments_tylerb.lua' (@entities/gmod_wire_expression2/core/custom/sv_shipments_tylerb.lua (line 12))
KingDaddleDingo 2015 年 7 月 8 日 上午 8:25 
2.5.X
Zenoxxi 2015 年 7 月 8 日 上午 5:02 
Tyler i want help with my Auto Taxi Shop, I have just made the screen but i want then someone press on the button on the screen, they ask them for money. and then i got a message in the chat that he have bought it. Code: http://pastebin.com/ijY9KQCA
TylerB  [作者] 2015 年 7 月 7 日 下午 9:36 
What darkrp version are you using?
KingDaddleDingo 2015 年 7 月 7 日 下午 8:59 
Hey Tyler, im not sure if it is just my server but the money request is not taking the money from the wallets. Is there any way to fix this?
TylerB  [作者] 2015 年 6 月 30 日 上午 12:47 
add @trigger all under the @inputs line.