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
citizenid
string
✅
Unique citizen ID for the fake profile.
firstname
string
✅
First name of the fake citizen.
lastname
string
✅
Last name of the fake citizen.
gender
number/string
❌
Gender (0 = Male, 1 = Female) or text. Defaults to "Unknown".
nationality
string
❌
Nationality of the fake citizen. Defaults to "Unknown".
birthdate
string
❌
Birthdate (YYYY-MM-DD format). Defaults to "Unknown".
photo
string
❌
URL or path to profile photo. Optional.
bankAccount
string
❌
Bank account number. Optional.
phoneNumber
string
❌
Phone number. Optional.
job
string
❌
Occupation. Defaults to "Unknown".
Note: If a profile with the same
citizenidalready exists in theplayerstable, 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)Last updated