Faye
Founder
Management
3
Years of Service
LEVEL 1
1000 XP
- Thread Author
- #1
Download:
SQL is included
Previews:
https://i.imgur.com/lUMXWEP.png
https://i.imgur.com/uCTEeC8.png
https://i.imgur.com/RS3fLBG.png
Multichar fix:
Previews:
https://i.imgur.com/lUMXWEP.png
https://i.imgur.com/uCTEeC8.png
https://i.imgur.com/RS3fLBG.png
Multichar fix:
Code:
RegisterServerEvent("divine-multichar:SetIsCreated", function()
local src = source
-- local user = exports["divine-fw"]:GetModule("Player"):GetUser(src)
local user = exports['divine-fw']:GetModule('Player')
local user = exports['divine-fw']:GetModule('GetPlayer')(src)
local characterId = user["PlayerData"]["id"]
exports.oxmysql:execute("UPDATE characters SET iscreated = @iscreated WHERE id = @id", {['iscreated'] = '0', ['id'] = characterId})
end)