Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. MySQL.Async.fetchAll('SELECT firstname, lastname, dateofbirth, sex, height FROM users WHERE identifier = @identifier', {['@identifier'] = identifier},
  2.     function (user)
  3.         if (user[1] ~= nil) then
  4.             MySQL.Async.fetchAll('SELECT type FROM user_licenses WHERE owner = @identifier', {['@identifier'] = identifier},
  5.             function (licenses, item)
  6.                 if type ~= nil then
  7.                     for i=1, #licenses, 1 do
  8.                         if type == 'driver' then
  9.                             if licenses[i].type == 'drive' or licenses[i].type == 'blicense' or licenses[i].type == 'tlicense' then
  10.                                 show = true
  11.                             end
  12.                         elseif type =='weapon' then
  13.                             if licenses[i].type == 'weapon' then
  14.                                 show = true
  15.                             end
  16.                         end
  17.                     end
  18.                 else
  19.                     show = true
  20.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement