Files
gluesteak/trigger.lua
2023-04-22 19:31:39 -05:00

33 lines
847 B
Lua

--MOTM.OpenRewardMenu(1)
--for _, ply in ipairs(player.GetAll()) do
-- Do something with each player here
--print(ply:Nick() .. " joined the round!")
-- Get the player's table of attributes
-- local plyTable = ply:GetTable()
-- Serialize the table to JSON format
-- local json = util.TableToJSON(plyTable)
-- Write the JSON string to a file
-- file.Write("player_attributes.json", json)
--end
--for _, ply in ipairs(player.GetAll()) do
-- if ply:Nick() == "licorice" then
-- net.Start( "CamSchliessenDetePlyCam" )
-- net.WriteEntity(ply)
-- net.SendToServer()
-- end
--end
-- by https://steamcommunity.com/id/Pastebin/
-- https://www.mpgh.net/forum/showthread.php?t=1432417
local player = LocalPlayer()
-- Get the player's view cone
local viewCone = player:GetViewCone()