Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@pedr0fontoura pedr0fontoura released this 22 Apr 18:55
  • Use native HTML input for unsupported input types in the character creation form.

For those asking for date of birth input you can now do the following:

function QBClient:getCreateCharacterFormStructure()
    return {
        {
            type = 'text',
            name = 'firstname',
            label = 'First name',
        },
        {
            type = 'text',
            name = 'lastname',
            label = 'Last name',
        },
        {
            type = 'select',
            name = 'gender',
            label = 'Gender',
            options = {
                { value = 0, label = 'Male' },
                { value = 1, label = 'Female' },
            },
        },
        {
            type = 'date',
            name = 'birthdate',
            label = 'Date of birth',
        },
    }
end