Cze??, mam pewien problem z skryptem na przecho, chcia?em ustaw? kordy na kt?rych auto wyci?gni?te z przecho powinno si? zrespi?, respi si? mniej wi?cej na koordach -1754.57,952.10,24.22 a tu nigdzie nie ma gdzie zmieni? te kordy... . Prosz? o pomoc !
s_parking.lua
[lua]
chowalnie = {
{{-1935.97,246.08,34.46},createMarker(-1935.97,246.08,34.46-0.9, "cylinder", 5, 255,255,255,25),setElementData(createColCuboid( -1935.97,246.08,34.46 -1, 5.2,6.5,6),"przecho:chowanie:id",1),{['Automobile']=true,['Bike']=true,['BMX']=true,['Quad']=true,['Monster Truck']=true,},""},
}
for _,c in pairs(chowalnie) do
createBlip(c[1][1],c[1][2],c[1][3], 35,2,0,0,0,0,0,250)
local t=createElement("text")
setElementData(t,"scale",1.5)
setElementData(t,"name","Pozostawianie pojazd?w")
setElementPosition(t,c[1][1],c[1][2],c[1][3])
end
addEvent("onParkingGetRekords22", true)
addEventHandler("onParkingGetRekords22", root, function(id)
local uid=getElementData(client, "UID")
if not uid then return end
local org = getElementData(client,"player:organization:id")
local result=exports["MNSDB"]:dbGet("SELECT * FROM mns_pojazdy WHERE wlasciciel=? AND parking=1",uid)
if #result > 0 then
triggerClientEvent(client, "onParkingGetVehicles22", root, result,id)
end
end)
addEventHandler("onColShapeHit", root, f... |