Kartik Scripts

Exports

A quick reference for all server and client exports exposed by kartik-properties. For hooks you can listen to or trigger, see Events. Use these to read property data or trigger core behaviour from other resources, dispatch systems, MDTs, phones, dashboards, etc.

All exports are called on the kartik-properties resource:

exports['kartik-properties']:<ExportName>(...)

🗂️ Available exports

SideExportPurpose
ServerGetCitizenPropertiesOwned + leased properties for one citizen
ServerGetAllPropertiesGlobal registry of every property
ServerGetPropertyByIdA single property by id
ServerGetPlayerPropertiesRaw owned-property rows for a citizen
ServerGetCompanyFundsBank balance of a real-estate company
ServerIsPlayerInPropertyThe property a player is currently inside
ServerAddFurnitureItemRegister a furniture definition at runtime
ServerGetPlayerHousingDataPhone-ready housing records for a citizen
ServerGetPropertyHousingDataPhone-ready housing data for one property
ServerGrantHousingKeyGive a citizen a key
ServerRevokeHousingKeyTake a citizen's key away
ServerSetPropertyLockedLock / unlock a property's front door
ServerAssignStarterApartmentLease a starter unit to a player
ServerIsPropertyGarageGarage API: is this a property garage id?
ServerGetPropertyGarageGarage API: one garage record
ServerGetPropertyGaragesGarage API: a citizen's usable garages
ServerCanUsePropertyGarageGarage API: access check
ServerGetPropertyGarageVehiclesGarage API: vehicles parked there
ServerGetPropertyGarageSlotsGarage API: used / total slots
ClientEnterPropertyWalk the local player into a property
ClientGiveVehicleKeysHand vehicle keys to the local player
ClientRemoveVehicleKeysRevoke vehicle keys from the local player

🔌 MDT integration

The three read-only server exports, GetCitizenProperties, GetAllProperties and GetPropertyById, are framework-agnostic views over the property cache, designed so external tools can display a citizen's holdings without touching the kp_* tables directly.

kartik-mdt ships a bridge (bridge/properties/server/kartik-properties.lua) that reads through these exports and maps them into the MDT's citizen-profile and global-registry views. No configuration is required beyond having both resources started.

On this page