Facebook
From Soiled Hedgehog, 2 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 188
  1. ddEventHandler("onResourceStart",resourceRoot,function()
  2.                 local q = exports['NSL-DB']:query("SELECT * FROM salon WHERE ilosc_modeli > 0")
  3.                 print(#q)
  4.                         for k,v in ipairs(q) do
  5.                                 car = createVehicle(v[1],v[2],v[3],v[4],0,0,v[5],"Salon")
  6.                                 print(v[1])
  7.                         end
  8.         end)