API

All exports and events that script provides for developers.

Exports

startTreeBuild

  • Start prop placer for building tree.

  • Side: client

  • Usage:

--- void
exports.rcore_xmas:startTreeBuild()

startSnowmanBuild

  • Start prop placer for building snowman.

  • Side: client

  • Usage:

--- void
exports.rcore_xmas:startSnowmanBuild()

isEntitySnowmanPart

  • Returns true/false if provided entity is part of building process of man snowman

  • Side: client

  • Usage:

getTrees

  • Returns table of all cached trees from database around map

  • Side: server

  • Usage:

getTreesByOwner

  • Returns table of all cached trees from database around map by provided owner id in parameter

  • Side: server

  • Usage:

getCollectedPresents

  • Returns all player's collected presents for present hunt directly and synchronously from database

  • Side: server

  • Usage:

getSpawnedSnowmans

  • Returns all currently spawned snowmans.

  • Side: server

  • Usage:

isEntitySnowman

  • Returns if entity in parameter is snowman built by script

  • Side: server

  • Usage:

getPresentsPositions

  • Returns table of all positions from shared/present-hunt/sh-positions.lua for present hunt

  • Side: shared

  • Usage:

Last updated

Was this helpful?