renzu_multicharacter

Scripts Compatible with Renzu Multicharacter

Framework options: ESX or qb core

1. Bryan Snaily's New Citizen System

Framework: ESX OR QB CORE

Modify the renzu_multicharacter/server/framework/main.lua file.

  1. Find the Login function.

  2. Change the following:

  3. Login = function(source, data, new, qbslot)
        local source = source
        if Config.framework == 'ESX' then
            TriggerEvent('esx:onPlayerJoined', source, Config.Prefix..data, new or nil)
            LoadPlayer(source)
        else
            if new then
                new.cid = data
                new.charinfo = {
                    firstname = new.firstname,
                    lastname = new.lastname,
                    birthdate = new.birthdate or new.dateofbirth,
                    gender = new.sex == 'm' and 0 or 1,
                    nationality = new.nationality
                }
                -- Insert This Here --
                exports['bryan_snaily']:InsertNewCitizen(new.charinfo.firstname, new.charinfo.lastname, new.charinfo.birthdate, new.charinfo.gender, new.charinfo.nationality)
                --
            end
            <...>
        end
    end
    1. Save the changes.

Last updated