Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MySQL.Async.fetchAll('SELECT firstname, lastname, dateofbirth, sex, height FROM users WHERE identifier = @identifier', {['@identifier'] = identifier},
- function (user)
- if (user[1] ~= nil) then
- MySQL.Async.fetchAll('SELECT type FROM user_licenses WHERE owner = @identifier', {['@identifier'] = identifier},
- function (licenses, item)
- if type ~= nil then
- for i=1, #licenses, 1 do
- if type == 'driver' then
- if licenses[i].type == 'drive' or licenses[i].type == 'blicense' or licenses[i].type == 'tlicense' then
- show = true
- end
- elseif type =='weapon' then
- if licenses[i].type == 'weapon' then
- show = true
- end
- end
- end
- else
- show = true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement