From Official DarkRP Wiki
|This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.|
Check here for a up-to-date list of functions.
|Unowns all the player's entities and doors.|
|Part of Library:||Player|
|Description||Unowns all entities on player's disconnect.|
function pDiscon( ply ) ply:UnownAll() --Notice: This is just example material, this function is called by DarkRP anyway end hook.Add( "PlayerDisconnected", "playerdisconnected", pDiscon )
- All owned doors get unlocked and unowned.
- Most entities remove themselves after the owner has been set to nil.
- Usually called when the player disconnects.