Garry's Mod

Garry's Mod

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

@name GiveMoneyToAllPlayers

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