| Tematy otagowane jako: frakcyjnych. |
| 1. Naprawa pojazdów frakcyjnych. |
Witam mam problem z napraw? aut frakcyjnych bo po wjechaniu w blip pokazuje ?e pojazd nie jest zniszczony.
[lua]
elements = {}
elements["position"] = {
{"SAFD", 1705.94, -1144.78, 24.01},
{"SAPD", 2315.69, 2464.48, 3.27},
{"SARA", 1076.52, 1356.35, 10.82},
{"SAMD", 983.91, 1746.06, 8.65},
---{"CZF", 633.28, -609.69, 16.34},
}
for _,v in ipairs(elements["position"]) do
Marker(Vector3(v[2], v[3], v[4]-.9), "cylinder", 4.5, 255, 0, 0, 100)
local text = Element("text")
text:setData("name", "Naprawa aut fraktyjnychn ["..v[1].."]")
text.position = Vector3(v[2], v[3], v[4]+.99)
end
addEventHandler("onMarkerHit", resourceRoot, function(player, dimension)
local vehicle = player.vehicle
if vehicle then
if vehicle.health < 100 then
if vehicle:getData("vehicle:rank") then
for _,v in ipairs(elements["position"]) do
if player:getData("player:duty") == v[1] then
triggerClientEvent(player, "onClientAddNotification", player, "Pojazd zosta? naprawiony!", "success")
vehicle:fix()
end
end
else
triggerClientEvent(player, "onClientAddNotification", player, "W tym miejscu mo?na naprawi? tylko pojazdy s?u?owe!", "error")
end
else
triggerClientEvent(player, "onClientAddNotifica... |
| 2. Naprawa pojazdów frakcyjnych. |
Siema mam problem z napraw? aut frakcyjnych poniewa? gdy wjad? autem naprawionym to pojawi si? napis ?e auto jest sprawne a je?eli wjad? popsutym to go nie naprawia.
[lua]
elements = {}
elements["position"] = {
{"SAFD", 1705.54, -1145.29, 23.99},
{"SAPD", 2315.20, 2500.10, 3.27},
{"SARA", 1052.77, 1341.66, 10.82},
{"SAMD", 982.90, 1746.49, 8.65},
{"CZF", 633.28, -609.69, 16.34},
}
for _,v in ipairs(elements["position"]) do
Marker(Vector3(v[2], v[3], v[4]-.9), "cylinder", 4.5, 255, 0, 0, 100)
local text = Element("text")
text:setData("name", "Naprawa aut frakcyjnychn ["..v[1].."]")
text.position = Vector3(v[2], v[3], v[4]+.99)
end
addEventHandler("onMarkerHit", resourceRoot, function(player, dimension)
local vehicle = player.vehicle
if vehicle then
if vehicle.health < 1000 then
if vehicle:getData("vehicle:rank") then
for _,v in ipairs(elements["position"]) do
if player:getData("player:duty") == v[1] then
triggerClientEvent(player, "onClientAddNotification", player, "Pojazd zosta? naprawiony!", "success")
vehicle:fix()
end
end
else
triggerClientEvent(player, "onClientAddNotification", player, "W tym miejscu mo?na naprawi? tylko pojazdy s?u?owe!", "error")
end
else... |
| 3. Nie działa naprawa pojazdów frakcyjnych. |
Witam mam taki ma?y problem ?e doda?em blipy do naprawy aut frakcyjncyh ale one po wjechaniu w nie nie naprawjaj?. Nizej da?em kod.
[LUA]
elements = {}
elements["position"] = {
{"SAFD", 1705.54, -1145.29, 23.99},
{"SAPD", 2315.20, 2500.10, 3.27},
{"SARA", 1052.77, 1341.66, 10.82},
{"SAMD", 982.90, 1746.49, 8.65},
{"CZF", 633.28, -609.69, 16.34},
}
for _,v in ipairs(elements["position"]) do
Marker(Vector3(v[2], v[3], v[4]-.9), "cylinder", 4.5, 255, 0, 0, 100)
local text = Element("text")
text:setData("name", "Naprawa aut fraktyjnychn ["..v[1].."]")
text.position = Vector3(v[2], v[3], v[4]+.99)
end
addEventHandler("onMarkerHit", resourceRoot, function(player, dimension)
local vehicle = player.vehicle
if vehicle then
if vehicle.health < 1000 then
if vehicle:getData("vehicle:rank") then
for _,v in ipairs(elements["position"]) do
if player:getData("player:duty") == v[2] then
triggerClientEvent(player, "onClientAddNotification", player, "Pojazd zosta? naprawiony!", "success")
vehicle:fix()
end
end
else
triggerClientEvent(player, "onClientAddNotification", player, "W tym miejscu mo?na naprawi? tylko pojazdy s?u?owe!", "error")
end
else
triggerClientEvent(player, &q... |
| 4. Gracz wchodzi do pojazdów frakcyjnych. |
Witam u?y?em frakcji z ogrpg. i gracz mo?e wej?? do pojazd?w Frakcyjnych Prosze o pomoc.
Kod z s_vehicles.lua:
https://pastebin.com/iqBpGsVv |
|