local tuning = dbConnect ( "sqlite", "zapistune.db" )
addEventHandler ( "onResourceStart", resourceRoot, function ()
if tuning then
dbExec ( tuning, "CREATE TABLE IF NOT EXISTS Tuning()" )
local q = dbQuery ( tuning, "SELECT * tuning" )
local result = dbPoll ( q, -1 )
if result then
for i,v in pairs ( result ) do
end
end
end
end
)
function zapis ( plr )
dbQuery ( tuning, "DELETE FROM Tuning" )
for i,v in ipairs ( getElementsByType ( "vehicle" ) ) do
dbQuery ( tuning, "INSERT INTO Tuning () VALUES ()")
end
end
end