AddStarterApartment
luaexports.nolag_properties:AddStarterApartment(playerIdentifier, buildingId)
Parameters
-
playerIdentifier:
string
The player's identifier (citizenid) -
buildingId:
number?(optional)
The building ID where the starter apartment should be created.Advanced parameter
Only use this if you explicitly know which building ID you are assigning.
Supplying an invalid or incorrectbuildingIdcan result in unexpected behavior or failed property creation.
If you are unsure, do not include this parameter and let the system automatically assign the apartment.
Return Value
boolean | number, string?
Returns the property ID if the property was created successfully, orfalseand the error message if it failed.