سلام
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 + 5, z)
end
addCommandHandler('createvehicle', createVehicleForPlayer, false, false)
دوستان موقع ساخت ماشين اين ارور رو ميده
[2020-03-21 05:55:27] ERROR: vehicles\vehicels.Lua:4: call: failed to call 'db:getConnection' [string "?"]
[2020-03-21 05:55:33] WARNING: vehicles\vehicels.Lua:8: Bad argument @ 'dbExec' [Expected db-connection at argument 1, got boolean]