gm_playerload/README.md

20 lines
850 B
Markdown
Raw Permalink Normal View History

2020-04-10 02:24:04 -04:00
# gm_playerload
Simple module that adds a hook for when a player fully loads
2020-07-18 16:18:54 -04:00
## Overview
2021-01-28 02:03:09 -05:00
According to [this issue](https://github.com/Facepunch/garrysmod-requests/issues/718) on the Garry's Mod issues net messages become unreliable and will likely crash players games when sent to a spawning player. To work around this a few smart people came up with a workaround and this is our rendition of it, not too different from the actual workaround but it fits our styling needs and it is easy to implement to our servers when needed.
2020-07-18 16:18:54 -04:00
## Installation
Clone or download this repository into your `garrysmod/addons` folder and restart your server or game.
2022-11-05 19:05:53 -04:00
## Use
```lua
require( "playerload" )
hook.Add( "PlayerFullLoad", "OnPlayerFullyLoaded", function( ply )
net.Start( "example" )
net.WriteString( "welcome :)" )
net.Send( ply )
end )
```