TriggerEvent('es:addCommand', 'karaktersil', function(source, args, user)
getIdentity(source, function( data )
if data.identifier ~= nil then
MySQL.Async.execute('DELETE FROM characters WHERE identifier = @identifier',
{ ['@identifier'] = data.identifier }
)
MySQL.Async.execute("UPDATE `users` SET `firstname` = @firstname, `lastname` = @lastname, `dateofbirth` = @dateofbirth, `sex` = @sex, `height` = @height, `lastdigits` = @lastdigits WHERE identifier = @identifier",
{
['@identifier'] = data.identifier,
['@firstname'] = 0,
['@lastname'] = 0,
['@dateofbirth'] = 0,
['@sex'] = 0,
['@height'] = 0,
['@lastdigits'] = 0
},
function ( result )
TriggerClientEvent('jsfour-register:eek:pen', source)
end)
end
end)
end)