Create Character

This endpoint allows you to create a character.

CreateCharacter(data, callback)

POST https://imperialcad.app/api/1.1/wf/createcharacter


Request Body

Name
Type
Description

users_discordID

string

Discord ID of user

Fname

string

First Name

Mname

string

Middle Name

Lname

string

Last Name

Birthdate

string

Date of Birth

gender

string

Gender

race

string

Race

hairC

string

Hair Color

eyeC

string

Eye Color

height

string

Height

weight

string

Weight

postal

string

Postal

address

string

Street Name

city

string

City

county

string

County

phonenum

string

Phone Number

dlstatus

string

Driver's License Status

citizenid

string

Unique Character ID


exports["ImperialCAD"]:NewCharacter({
    users_discordID = "123456789012345678",
    Fname = "John",
    Mname = "T",
    Lname = "Doe",
    Birthdate = "1995-03-21",
    gender = "Male",
    race = "White",
    hairC = "Black",
    eyeC = "Brown",
    height = "6'1",
    weight = "190",
    postal = "202",
    address = "124 Grove St",
    city = "Los Santos",
    county = "Los Santos",
    phonenum = "5553331234",
    dlstatus = "Valid",
    citizenid = "JD321"
}, function(success, res)
  if success then print("Civilian created!") else print("Failed:", res) end
end)

Last updated

Was this helpful?