Garry's Mod
TylerB's moneyRequest E2 Functions (v1)
86 comentarios
Talvez 4 ENE a las 9:12 
Hi, i'm having troubles using the money request, even on a successfull request its not returning 1 on moneyClk() function
Roxieboy16 1 AGO 2024 a las 22:28 
is there a tutorial + example to use these functions
PaRaDiS3312 29 SEP 2020 a las 8:56 
Any way to increase the size of the request window so people can actually see the amount you're requesting?
SimplyBrumble_TTV 16 JUN 2020 a las 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..
SimplyBrumble_TTV 16 JUN 2020 a las 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 5 ENE 2020 a las 13:21 
СЛОЖНА СЛОЖНА БЛЯТЬ ЧТО ЭТА ЗА ХУЙНЯ
PROXIMITY 21 JUN 2019 a las 19:03 
Hey LittleBladed, you can check https://pastebin.com/bMT11CFw , which I posted for a user earlier in this thread.
LittleBladed 15 ABR 2019 a las 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 16 DIC 2018 a las 11:00 
I want to make a MobilePay replica using this. But I'm bad at LUA :/
some weirdo 16 DIC 2018 a las 11:00 
I wish I knew how to redesign this :(
PROXIMITY 5 DIC 2018 a las 6:10 
Hey Friend moat.gg, here's a simple 1 liner

@name GiveMoneyToAllPlayers

foreach (Key, Ply:entity = players()) { moneyGive(Ply,10) }
Swedish Submarine 4 DIC 2018 a las 16:01 
How would i do moneyGive(*all*, 500)) like how would i select everyone on the server
PROXIMITY 12 SEP 2018 a las 12:37 
If you can explain exactly what the chip needs to do I can make one for you and you can see
Riggs 10 SEP 2018 a las 4:20 
if it was accepted
Riggs 10 SEP 2018 a las 4:19 
and i want it to trigger a output (Fire)
Riggs 10 SEP 2018 a las 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 10 JUN 2018 a las 15:36 
Alrighty Thank you!!
PROXIMITY 10 JUN 2018 a las 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 9 JUN 2018 a las 13:43 
Using moneyGive(ply, amount) is there a way to send money to offline users using their steamid as a string?
Aydan 27 MAY 2018 a las 16:04 
Thanks you, Much Appreciated,
PROXIMITY 26 MAY 2018 a las 15: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 25 MAY 2018 a las 20:15 
how could one directly give someone money with chat commands like !send (player) (ammount), i cant get it https://pastebin.com/w5a1NdLJ
PROXIMITY 26 ABR 2018 a las 16:05 
Here you go Noel, I made it as easy to understand as I can.
Pastebin Link [pastebin.com]
Noel 22 ABR 2018 a las 14:06 
how to request for all money what he have from someone?
Magic Gonads 24 FEB 2018 a las 16: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 24 FEB 2018 a las 12:59 
i need some help with some code on my e2, ( i want it to be private ,could you add me )
TylerB  [autor] 24 FEB 2018 a las 12:08 
I can add that, if you want.
Void 4 ENE 2018 a las 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 4 NOV 2017 a las 16:57 
hi! how do i make a max moneyrequest? like max 1000000 or lower????
Magic Gonads 10 SEP 2017 a las 2:27 
Tyler this is very nice :)
TylerB  [autor] 9 SEP 2017 a las 16:09 
erm; what?
Kiong 26 AGO 2017 a las 6:03 
can you make a .txt file not a lua?
TylerB  [autor] 8 AGO 2017 a las 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 9 MAR 2017 a las 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 5 MAR 2017 a las 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 10 NOV 2016 a las 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 23 OCT 2016 a las 9:32 
It's amazing. Thank You!
Undefined 25 JUL 2016 a las 15: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 18 JUL 2016 a las 19:25 
Love it!
Hagrid 9 MAR 2016 a las 23:51 
So, will this be made for expadv2 one day? :D
rako 14 NOV 2015 a las 16:04 
Try creating the Button:entity input and linking it to the button, then, in moneyRequest() use button:name() instead of owner()
BareMaxx 25 OCT 2015 a las 13: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 22 OCT 2015 a las 6:49 
how do i use it?
TylerB  [autor] 9 JUL 2015 a las 12:43 
should work fine anyway, those are just e2help definitions
KingDaddleDingo 8 JUL 2015 a las 23: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 8 JUL 2015 a las 8:25 
2.5.X
Zenoxxi 8 JUL 2015 a las 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  [autor] 7 JUL 2015 a las 21:36 
What darkrp version are you using?
KingDaddleDingo 7 JUL 2015 a las 20: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  [autor] 30 JUN 2015 a las 0:47 
add @trigger all under the @inputs line.