</>liveDevDocs
ScriptlerliveBase

liveAparts

Daire / housing sistemi — PolyZone, stash, interior runtime yükleme.

🌐 English · liveAparts

Sürüm: 1.0.0
Bağımlılıklar: liveBase, oxmysql, PolyZone, liveInterior (runtime), liveMenu, liveWeatherSync

Config (config.lua)

AyarVarsayılanAçıklama
Apartments.StartingtrueYeni karakterler daire seçer
Apartments.SpawnOffset30Interior spawn offset
Apartments.Locations5 dairePolyZone box verileri

Exports

-- Sunucu
exports['liveAparts']:GetOwnedApartment(source, citizenid?)
exports['liveAparts']:IsResourceReady()

-- Client
exports['liveAparts']:GetLocations()
exports['liveAparts']:IsStartingEnabled()

Events

EventYön
liveAparts:Server:CreateApartmentC→S
liveAparts:Client:SpawnInApartmentS→C
liveAparts:Client:EnterApartment / LeaveApartmentS→C
liveAparts:Client:OpenStashS→C

Callbacks: GetAvailableApartments, GetOwnedApartment, IsOwner

SQL: resources/[livedev]/liveAparts/sql/liveaparts.sql

On this page