Kartik Scripts

Add Fake Profiles

AddFakeProfile(profileData)

Creates a new fake profile and inserts it into the MDT database.

Usage

local success, message = exports['kartik-mdt']:AddFakeProfile(profileData)

Parameters

FieldTypeRequiredDescription
citizenidstring✅Unique citizen ID for the fake profile.
firstnamestring✅First name of the fake citizen.
lastnamestring✅Last name of the fake citizen.
gendernumber/string❌Gender (0 = Male, 1 = Female) or text. Defaults to "Unknown".
nationalitystring❌Nationality of the fake citizen. Defaults to "Unknown".
birthdatestring❌Birthdate (YYYY-MM-DD format). Defaults to "Unknown".
photostring❌URL or path to profile photo. Optional.
bankAccountstring❌Bank account number. Optional.
phoneNumberstring❌Phone number. Optional.
jobstring❌Occupation. Defaults to "Unknown".

Note:
If a profile with the same citizenid already exists in the players table, the function will fail and return an error message.

Returns

  • true, "Profile added successfully" – When the profile is created successfully.
  • false, "Error Message" – If there is a validation or database issue.

Example

local profileData = {
    citizenid = "FAKE12345",
    firstname = "John",
    lastname = "Doe",
    gender = 0,
    nationality = "American",
    birthdate = "1990-01-01",
    photo = "path/to/photo.jpg",
    bankAccount = "123456789",
    phoneNumber = "555-1234",
    job = "Citizen"
}

local success, message = exports['kartik-mdt']:AddFakeProfile(profileData)
print(success, message)

On this page