CityRP Documentation Repository

core.plugins.propsave.sv_init

Prop Save

Functions

Servercityrp.propsave.deleteProps(player)Source ☍

Delete a player's prop table.

Parameters

  • playeranyThe player to delete props for.
Servercityrp.propsave.loadprops(ply)Source ☍

Load a player's props from the propsave file.

Parameters

  • plyanyThe player objeect to load from.
Servercityrp.propsave.otherpropinarea(pos, ply) → booleanSource ☍

Check if another player has props in the area of a prop we're trying to spawn.

Parameters

  • posanyThe position to check.
  • plyanyThe player who we're checking for.

Returns

  1. booleanIf any props were found.
Servercityrp.propsave.restoreProps(player)Source ☍

Restore a player's props.

Parameters

  • playeranyThe player to restore props for.
Servercityrp.propsave.saveProps(player, force)Source ☍

Save a player's prop table.

Parameters

  • playeranyThe player to save props for.
  • forceanyUnused.
Servercityrp.propsave.writePropTable(steamid)Source ☍

Write a player's saved prop table to a file.

Parameters

  • steamidanyThe steamID to save.

Tables

Servercityrp.propsaveSource ☍
Servercityrp.propsave.proptableSource ☍