19 lines
No EOL
514 B
Lua
19 lines
No EOL
514 B
Lua
function CheckVehicleOwner(id, plate)
|
|
MySQL.query("SELECT * FROM player_vehicles WHERE citizenid = ? and plate = ?", {id, plate}, function(rs)
|
|
if rs ~= nil then
|
|
return true
|
|
else
|
|
return false
|
|
end
|
|
end)
|
|
end
|
|
|
|
function CheckEintrag_v_key(id, plate)
|
|
MySQL.query("SELECT * FROM vehicle_keys WHERE owner = ? and plate = ?", {id, plate}, function(rs)
|
|
if rs ~= nil then
|
|
return true
|
|
else
|
|
return false
|
|
end
|
|
end)
|
|
end |