AddStarterApartment

Gives a property with the settings from the config "StarterApartment". The export could be used when a player creates a character in the server

exports.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.

    circle-exclamation

Return Value

  • boolean | number, string? Returns the property ID if the property was created successfully, or false and the error message if it failed.

Last updated