blob: f84799dbe5cc849e7556d2f8723155d9fb1432f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--Makes sure the player knows about things like inventory, skills, experience ect.
net.Receive( "gms_SetResource", function( length, pl)
local name = net.ReadString()
if(GMS.GetResourceByName(name).UniqueData) then
local restable = net.ReadTable()
if(Resources[name] == nil) then
Resources[name] = {}
end
table.insert(Resources[name],restable.UniqueDataID,restable)
else
if(Resources[name] == nil) then
Resources[name] = 0
end
local num = net.ReadInt(GMS.NETINT_BITCOUNT)
Resources[name] = num
end
GAMEMODE:ReloadSpawnMenu()
end)
|