Module core.plugins.zz_networking.sv_init
Serverside Networking Module
Module Overview
Functions
| PLUGIN:SetNSVar(ply, name, value) | Internal function - Called by pMeta:SetNSVar() automatically. |
| pMeta:GetNSVar(name[, default]) | Get an authorative NSVar value from a player. |
| pMeta:SetNSVar(name, value) | Set a player's NSVar. |
| PLUGIN:SetLocalPlayerVariable(ply, name, value) | Update a variable on a player's client. |
| pMeta:SetLPlyVar(name, value) | Update a variable on a player's client. |
| cityrp.player.setLocalPlayerVariable(player, class, key, value) | Update a variable on a player's client. |
- PLUGIN:SetNSVar(ply, name, value)
-
Internal function - Called by pMeta:SetNSVar() automatically.
Check new NSVars against current NSVars, send net message to client dependent on changes.
Parameters:
- pMeta:GetNSVar(name[, default])
-
Get an authorative NSVar value from a player.
Parameters:
- name string The name of the NSVar being pulled.
- default Default value if NSVar doesn't exist. (optional)
- pMeta:SetNSVar(name, value)
-
Set a player's NSVar.
Parameters:
- name string The name of the NSVar being set.
- value The new value being set.
- PLUGIN:SetLocalPlayerVariable(ply, name, value)
-
Update a variable on a player's client.
Parameters:
- pMeta:SetLPlyVar(name, value)
-
Update a variable on a player's client.
Parameters:
- name string The name of the variable to set.
- value The new value to set.
- cityrp.player.setLocalPlayerVariable(player, class, key, value)
-
Update a variable on a player's client.
Parameters:
- player The player having the value changed.
- class No longer used.
- key The name of the Lplyvar to set.
- value The new value being set.