mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 06:37:34 +00:00
move meta
This commit is contained in:
parent
d275eb7d6b
commit
8cc705cdc4
|
@ -2,20 +2,6 @@
|
||||||
// Functions
|
// Functions
|
||||||
//
|
//
|
||||||
|
|
||||||
// Meta
|
|
||||||
local ply = FindMetaTable("Player")
|
|
||||||
|
|
||||||
function ply:gmInteGetTotalMoney()
|
|
||||||
// if darkrp
|
|
||||||
if DarkRP then
|
|
||||||
return self:getDarkRPVar("money")
|
|
||||||
end
|
|
||||||
|
|
||||||
// else
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
|
|
||||||
// Main
|
|
||||||
function gmInte.removePort(ip)
|
function gmInte.removePort(ip)
|
||||||
return string.Explode(":", ip)[1]
|
return string.Explode(":", ip)[1]
|
||||||
end
|
end
|
||||||
|
@ -69,6 +55,11 @@ local function getTriggerInfo(text)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function gmInte.wsPlayerSay(data)
|
||||||
|
if !gmInte.config.syncChat then return end
|
||||||
|
gmInte.SendNet(1, data, nil)
|
||||||
|
end
|
||||||
|
|
||||||
function gmInte.playerSay(ply, text, team)
|
function gmInte.playerSay(ply, text, team)
|
||||||
if (!gmInte.config.syncChat) then return end
|
if (!gmInte.config.syncChat) then return end
|
||||||
local triggerInfo = getTriggerInfo(text)
|
local triggerInfo = getTriggerInfo(text)
|
||||||
|
|
12
lua/gmod_integration/server/sv_meta.lua
Normal file
12
lua/gmod_integration/server/sv_meta.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// Meta
|
||||||
|
local ply = FindMetaTable("Player")
|
||||||
|
|
||||||
|
function ply:gmInteGetTotalMoney()
|
||||||
|
// if darkrp
|
||||||
|
if DarkRP then
|
||||||
|
return self:getDarkRPVar("money")
|
||||||
|
end
|
||||||
|
|
||||||
|
// else
|
||||||
|
return 0
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user