Housing
Client-Side Overrides (custom/client.lua)
custom/client.lua)1. Initial Spawn (Apartments/Motels)
function Custom_SpawnInsideApartment()
-- Example for custom motel:
-- exports["my_custom_motel"]:SpawnInsideApartment()
end2. Creating an Apartment
function Custom_CreateApartment(appType, label)
-- Example:
-- TriggerServerEvent("my_apartments:server:CreateApartment", appType, label)
end3. Last Location Spawning
4. Entering Owned Houses (Spawn Menu)
Server-Side Overrides (custom/server.lua)
custom/server.lua)1. Loading House Configurations
2. Fetching Owned Houses for the UI
Last updated