mirror of
https://gitlab.com/lunovox/minertrade.git
synced 2025-03-15 05:31:20 +00:00
23 lines
No EOL
805 B
Lua
23 lines
No EOL
805 B
Lua
|
|
|
|
if core.global_exists("modComputing") then
|
|
modComputing.add_app("minertrade:btnWebBank", {
|
|
icon_name = "btnWebBank",
|
|
icon_title = modMinerTrade.translate("WEB BANK"),
|
|
icon_descryption = modMinerTrade.translate("Allows you to access the bank account anywhere in the world."),
|
|
icon_type = "button", --types: button/button_exit
|
|
icon_image = "obj_credit_card.png",
|
|
on_iconclick = function(player)
|
|
local playername = player:get_player_name()
|
|
core.log(
|
|
"action","[MINERTRADE] "
|
|
..modCorreio.translate(
|
|
"Player '@1' is trying to access the bank account via the '@2'!"
|
|
, playername
|
|
, "computing app"
|
|
)
|
|
)
|
|
modMinerTrade.showAccountBank.inCreditCard(playername, playername)
|
|
end,
|
|
})
|
|
end |