Garry's Mod

Garry's Mod

评价数不足
TylerB's moneyRequest E2 Functions Reskin
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
22.677 KB
2020 年 6 月 14 日 上午 8:41
1 项改动说明 ( 查看 )

订阅以下载
TylerB's moneyRequest E2 Functions Reskin

描述
I DID NOT CREATE THIS ADDON. I ONLY DID A RESKIN USING XeninUI

CREDIT GOES TO TylerB FOR MAKING THE ORIGINAL ADDON
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=259174593

CREDIT TO sleeppyy FOR XENINUI
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1900562881


With this addon, you can create unhackable stores using Expression 2!

moneyRequest(ply, amount, [title], [timeout]) - Asks a player for money, with an optional title and timeout.
(if the player cannot afford the request, the function will return 0!)
moneyGive(ply, amount) - Gives a player the specified amount of money.

moneyClk() - Returns 1 if the e2 was triggered by a successful request.
moneyClk(title) - Returns 1 if the title matches the request causing the e2 to run.
moneyClkTitle() - Returns the title of the successful request.
moneyClkAmount() - Returns the amount of the successful request.
moneyClkPlayer() - Returns the target of the successful request.

moneyNoClk() - Returns 1 if the e2 was triggered by a declined request.
moneyNoClk(title) - Returns 1 of the title matches the request causing the e2 to run.
moneyNoClkTitle() - Returns the title of the declined request.
moneyNoClkAmount() - Returns the amount of the declined request.
moneyNoClkPlayer() - Returns the target of the declined request.

moneyTimeout() - Returns 1 if the e2 was triggerd by a timed-out request.
moneyTimeout(title) - Returns 1 if the title matches the request causing the e2 to run.
moneyTimeoutTitle() - Returns the title of the timed-out request.
moneyTimeoutAmount() - Returns the amount of the timed-out request.
moneyTimeoutPlayer() - Returns the target of the timed-out request.

entity:money() - If target is a player, return their wallet, otherwise, the amount of money.
entity:moneyAmount() - Alias of entity:money().



-- COMMANDS --
rp_blockmoney_add STEAMID - Adds the user with the provided Steam ID to a list and prevents them from asking you for money.
rp_blockmoney_remove STEAMID - Removes the user from the aforementioned list.

sv_moneyrequest_max - The maximum amount of money you can request/give at a single time.
sv_moneyrequest_allowgive - Disable / Enable moneyGive().
-- /COMMANDS --

Have an error to report? Leave a comment below!