Kartik Scripts

Create Fake Profile

Registers or updates a fake/undercover profile directly in the MDT database.

Export Syntax

exports['kartik-mdt']:CreateFakeProfile(data)

Parameters

ParameterTypeRequiredDescription
datatableYesProfile details (schema below)

Schema for data

{
    citizenId   = string,  -- Required
    firstname   = string,  -- Optional
    lastname    = string,  -- Optional
    gender      = string,  -- Optional
    nationality = string,  -- Optional
    birthdate   = string,  -- Optional
    photo       = string,  -- Optional
    bankAccount = string,  -- Optional
    phoneNumber = string,  -- Optional
    job         = string,  -- Optional
}

Return Value

  • Returns boolean: true if the profile was created or updated successfully, false otherwise.

Example Usage

local data = {
    citizenId   = "UC9988",
    firstname   = "Agent",
    lastname    = "Smith",
    gender      = "Male",
    nationality = "American",
    birthdate   = "1990-01-01",
    job         = "undercover",
    phoneNumber = "555-0101"
}

local success = exports['kartik-mdt']:CreateFakeProfile(data)
if success then
    print("Undercover identity successfully created!")
else
    print("Failed to create undercover identity.")
end

On this page