Saving an entity in pos after restart

Say I were to type !something what would I need to put into the hook to make it save an entity’s position and respawn it where ever saved to after a server restarts .

hook.Add( ‘PlayerSay’, ‘UNIQUE_NAME’, function( ply, text, team )
if text == ‘!help’ then

end

end )

you could use
the file library
http://wiki.garrysmod.com/page/Category:file

an sql data base
http://wiki.garrysmod.com/page/Category:sql
or

Player Data
http://wiki.garrysmod.com/page/Player/SetPData

It’s up to you to figure out how to use them

thank you, helped me alot