Facebook
From Gamboge Owl, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 485
  1. exports("ready", function (callback)
  2.   Citizen.CreateThread(function ()
  3.       -- add some more error handling
  4.       while GetResourceState('ghmattimysql') ~= 'started' do
  5.           Citizen.Wait(0)
  6.       end
  7.       -- while not exports['mysql-async']:is_ready() do
  8.       --     Citizen.Wait(0)
  9.       -- end
  10.       callback()
  11.   end)
  12. end)