API
Last updated
local entity = ...
--- snowmanPart: boolean (true/false)
local snowmanPart = exports.rcore_xmas:isEntitySnowmanPart(entity)
if snowmanPart then
...
end--- {
---
--- [key: id]: string = {
--- model: int,
--- coords: vector3,
--- rotation: vector3,
--- heading: float,
--- owner: string
--- }: table
---
--- }: table
local cachedTrees = exports.rcore_xmas:getTrees()
for treeId, tree in pairs(cachedTrees) do
local model = tree.model
local coords = tree.coords
local rotation = tree.rotation
local heading = tree.model
local owner = tree.model
...
endlocal client = source?
--- {
---
--- [key: id]: string = {
--- model: int,
--- coords: vector3,
--- rotation: vector3,
--- heading: float,
--- owner: string
--- }: table
---
--- }: table
local trees = exports.rcore_xmas:getTreesByOwner(client)local client = source?
--- {
---
--- [key: presentId]: string = boolean
---
--- }: table
local collectedPresents = exports.rcore_xmas:getCollectedPresents(client)--- {
---
--- [key: id]: string = Entity (number)
---
--- }: table
local snowmans = exports.rcore_xmas:getSpawnedSnowmans()--- boolean (true/false)
local entity = ...
if exports.rcore_xmas:isEntitySnowman(entity) then
...
end--- {
---
--- {
--- position: vector3,
--- rotation: vector3
--- }: table
--
--- }: table
local presentsPositions = exports.rcore_xmas:getPresentsPositions()