Im trying to make a DB table, when i run the server it says
dbexec failed, near "-" Syntax error....
here is the code of the lua
function createVehicleForPlayer(player, command, model)
local db = exports.db:getConnection()
local x, y, z = getElementPosition(player)
y = y + 5
dbExec(db, "INSERT INTO vehicles (model, x, y, z) VALUES (?. ?. ?. ?)", model, x, y, z)
createVehicle(model, x, y, z)
end
addCommandHandler("createveh",createVehicleForPlayer, false, false)
addCommandHandler("vehcreate",createVehicleForPlayer, false, false)