forked from narc0tiq/YARM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremote.lua
35 lines (27 loc) · 970 Bytes
/
remote.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require "resmon"
local interface = {}
function interface.reset_player(player_name_or_index)
local player = game.players[player_name_or_index]
local player_data = global.player_data[player.index]
player.character = player.selected
player_data.viewing_site = nil
player_data.real_character = nil
player_data.remote_viewer = nil
end
function interface.hide_expando(player_name_or_index)
local player = game.players[player_name_or_index]
if global.player_data[player.index].expandoed then
resmon.on_click.YARM_expando({player_index=player.index})
return true
end
return false
end
function interface.show_expando(player_name_or_index)
local player = game.players[player_name_or_index]
if not global.player_data[player.index].expandoed then
resmon.on_click.YARM_expando({player_index=player.index})
return false
end
return true
end
remote.add_interface("YARM", interface)