Skip to content

Simple module that adds a hook for when a player fully loads

License

Notifications You must be signed in to change notification settings

CFC-Servers/gm_playerload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gm_playerload

Simple module that adds a hook for when a player fully loads

Overview

According to this issue 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.

Installation

Clone or download this repository into your garrysmod/addons folder and restart your server or game.

Use

require( "playerload" )

hook.Add( "PlayerFullLoad", "OnPlayerFullyLoaded", function( ply )
    net.Start( "example" )
    net.WriteString( "welcome :)" )
    net.Send( ply )
end )

About

Simple module that adds a hook for when a player fully loads

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages