Garry's Mod
TylerB's moneyRequest E2 Functions (v1)
86 comentarii
Talvez 4 ian. la 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 aug. 2024 la 22:28 
is there a tutorial + example to use these functions
PaRaDiS3312 29 sept. 2020 la 8:56 
Any way to increase the size of the request window so people can actually see the amount you're requesting?
SimplyBrumble 16 iun. 2020 la 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 16 iun. 2020 la 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 ian. 2020 la 13:21 
СЛОЖНА СЛОЖНА БЛЯТЬ ЧТО ЭТА ЗА ХУЙНЯ
PROXIMITY 21 iun. 2019 la 19:03 
Hey LittleBladed, you can check https://pastebin.com/bMT11CFw , which I posted for a user earlier in this thread.
LittleBladed 15 apr. 2019 la 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 dec. 2018 la 11:00 
I want to make a MobilePay replica using this. But I'm bad at LUA :/
some weirdo 16 dec. 2018 la 11:00 
I wish I knew how to redesign this :(
PROXIMITY 5 dec. 2018 la 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 dec. 2018 la 16:01 
How would i do moneyGive(*all*, 500)) like how would i select everyone on the server
PROXIMITY 12 sept. 2018 la 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 sept. 2018 la 4:20 
if it was accepted
Riggs 10 sept. 2018 la 4:19 
and i want it to trigger a output (Fire)
Riggs 10 sept. 2018 la 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 iun. 2018 la 15:36 
Alrighty Thank you!!
PROXIMITY 10 iun. 2018 la 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 iun. 2018 la 13:43 
Using moneyGive(ply, amount) is there a way to send money to offline users using their steamid as a string?
Aydan 27 mai 2018 la 16:04 
Thanks you, Much Appreciated,
PROXIMITY 26 mai 2018 la 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 mai 2018 la 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 apr. 2018 la 16:05 
Here you go Noel, I made it as easy to understand as I can.
Pastebin Link [pastebin.com]
Noel 22 apr. 2018 la 14:06 
how to request for all money what he have from someone?
Magic Gonads 24 febr. 2018 la 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 febr. 2018 la 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 febr. 2018 la 12:08 
I can add that, if you want.
Void 4 ian. 2018 la 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 la 16:57 
hi! how do i make a max moneyrequest? like max 1000000 or lower????
Magic Gonads 10 sept. 2017 la 2:27 
Tyler this is very nice :)
TylerB  [autor] 9 sept. 2017 la 16:09 
erm; what?
Kiong 26 aug. 2017 la 6:03 
can you make a .txt file not a lua?
TylerB  [autor] 8 aug. 2017 la 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 mart. 2017 la 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 mart. 2017 la 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 la 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 la 9:32 
It's amazing. Thank You!
Undefined 25 iul. 2016 la 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 iul. 2016 la 19:25 
Love it!
Hagrid 9 mart. 2016 la 23:51 
So, will this be made for expadv2 one day? :D
rako 14 nov. 2015 la 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 la 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 la 6:49 
how do i use it?
TylerB  [autor] 9 iul. 2015 la 12:43 
should work fine anyway, those are just e2help definitions
KingDaddleDingo 8 iul. 2015 la 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 iul. 2015 la 8:25 
2.5.X
Zenoxxi 8 iul. 2015 la 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 iul. 2015 la 21:36 
What darkrp version are you using?
KingDaddleDingo 7 iul. 2015 la 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 iun. 2015 la 0:47 
add @trigger all under the @inputs line.