addEvent( "st", true)
addEventHandler("st", getRootElement(),
function (ids)
if ids then
local query = dbQuery(con, "SELECT engine FROM pojazdy WHERE id=?", tonumber(ids))
local result = dbPoll(query, -1)
if #result > 0 then
for _,v in pairs(result) do
local explode = split(v["engine"],",")
for i,k in pairs(explode) do
triggerClientEvent(source,"xd",source,k)
end
end
end
end
end
)