Add Fake Profiles
AddFakeProfile(profileData)
Creates a new fake profile and inserts it into the MDT database.
Usage
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
citizenid
already exists in theplayers
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
Last updated