Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2021-05-03, 10:27


thomson6665







Wiek: 28
Na forum: 1916 dni
Posty: 68

Piwa: 10

Respekt: 50

Witam mam problem poniewa? mam paczk? denverMTA i odpalam frakcj? i dzia?aj? normalnie lecz po jakim? czasie nie da si? wejsc do pojazdu a w db3 nie ma b??d?w.
za pomoc leci piwko

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 11:24


Pepe







Wiek: 25
Na forum: 1966 dni
Posty: 7
Nick w MP: Pepe

Piwa: 123

Respekt: 70

nie wiem czy pomog? ale chc? pom?c
zobacz w kodzie kt?ry respi pojazdy na jak? rang? jest ustawiony pojazd bo mo?e pojazd jest ustawiony na rang? 15 a Ty masz rang? 1

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 12:28


thomson6665







Wiek: 28
Na forum: 1916 dni
Posty: 68

Piwa: 10

Respekt: 50

"Pepe14" napisał/a:

nie wiem czy pomog? ale chc? pom?c
zobacz w kodzie kt?ry respi pojazdy na jak? rang? jest ustawiony pojazd bo mo?e pojazd jest ustawiony na rang? 15 a Ty masz rang? 1

ja mam 99 rang?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 12:39


_jvneczek







Wiek: 22
Na forum: 4326 dni
Posty: 1513
Nick w MP: _jvneczek

Piwa: 3949

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

Pode?lij kod od frakcji.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 19:22


thomson6665







Wiek: 28
Na forum: 1916 dni
Posty: 68

Piwa: 10

Respekt: 50

"satan_" napisał/a:

Pode?lij kod od frakcji.

problem rozwi?zany lecz mam problem z frakcj? sara poniewa? w kodzie jest ?e zaladuj ?eby za?adowa? auta a ta komoda nie dzia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 19:25


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3099 dni
Posty: 964

Piwa: 3101

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

thomson6665, b??dy ? tak?e kod podaj

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 19:53


thomson6665







Wiek: 28
Na forum: 1916 dni
Posty: 68

Piwa: 10

Respekt: 50

"TheSebaPL" napisał/a:

thomson6665, b??dy ? tak?e kod podaj

Prosz? ss- https://zapodaj.net/d0c488754125f.png.html

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 19:59


_jvneczek







Wiek: 22
Na forum: 4326 dni
Posty: 1513
Nick w MP: _jvneczek

Piwa: 3949

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

Poka? kod.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 20:11


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

B??d oznacza, ?e nie znaleziono elementu kt?ry poda?e? w 1 argumencie elementdaty

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 20:21


thomson6665







Wiek: 28
Na forum: 1916 dni
Posty: 68

Piwa: 10

Respekt: 50

"satan_" napisał/a:

Poka? kod.


[function getVehicleHandlingProperty elementproperty )
    if isElement element ) and getElementType element ) == "vehicle" and type property ) == "string" then
        local handlingTable getVehicleHandling element )
        local value handlingTable[property]
 
        if value then
            return value
        end
    end
 
    return false
end
 
local colspheres = { }
 
local sara_dft = { 
{-1874, -861.3932.75359.9360.089.5578},
{-1874, -856.2532.75359.90.189.5578},
{-1874, -849.8132.75359.90.089.5578},
{-1874, -843.4132.75359.9360.089.5578},
{-1874, -867.8132.75358.70.089.5578},
{-1874, -874.1732.75359.90.089.5578},
{-1874, -880.7132.75359.90.189.5578},
{-1874, -837.1132.75359.90.089.5578},
}
 
 
local sara_premier = {
{-1897.86, -840.2031.770.00.089.4552},
{-1897.86, -836.9631.770.00.089.4552},
{-1897.86, -877.6431.770.00.089.4552},
{-1897.86, -880.8531.770.0360.089.4552},
}
 
local sara_sultan = {
{-1897.74, -849.8731.73359.9360.089.0560},
{-1897.74, -846.6331.73359.9360.089.0560},
{-1897.74, -843.4331.73359.9360.089.0560},      
{-1897.74, -871.1031.73359.9360.089.0 560},
{-1897.74, -867.7631.73359.9360.089.0560},
{-1897.74, -874.3631.73359.9360.089.0560},
}
 
 
 
local sara_policemaverick = {
}


local sara_liderka = {
{-1897.87, -853.2131.73359.5360.089.7451},
{-1897.87, -864.6531.73359.5360.089.7451},
}

local sara_busy = {
    {-1910.02, -849.0732.23359.1358.5180431},
  --  {-1925.79, -868.6532.20359.64.20431},
    }

local sara_holowniki = {
    {-1887.01, -853.1131.90358.1360.0269.8525},
    {-1887.01, -849.8331.90358.10.0269.8525},
    {-1887.01, -864.5731.90358.10.0269.8525},
    {-1887.01, -867.8531.90358.10.0269.8525}, 
    {-1887.01, -871.1831.90358.20.0269.3525},
    {-1887.01, -846.6831.91358.20.0269.8525},
    }


 
 
for i,v in pairs(sara_premier) do
    local vehicle=createVehicle(v[7], v[1], v[2], v[3])
    setVehicleColor(vehicle,2471270,255)
    setElementRotation(vehiclev[4], v[5], v[6])
    setVehicleEngineState(vehiclefalse)
    setElementFrozen(vehicletrue)
    removeVehicleSirens(vehicle)
    setElementData(vehicle,"vehicle:SARA"true)
    setVehicleColor(vehicle2471270)
    setElementFrozen(vehicle,true)
    setVehicleDamageProof(vehicletrue)
    local fast getVehicleHandlingProperty(vehicle,"engineAcceleration")
    local maxfast getVehicleHandlingProperty(vehicle,"maxVelocity")
    local masa getVehicleHandlingProperty(vehicle,"mass")
    local masa2 getVehicleHandlingProperty(vehicle,"turnMass")
    local xd getVehicleHandlingProperty(vehicle,"tractionMultiplier")
    local coef getVehicleHandlingProperty(vehicle,"dragCoeff")
    local stdg getVehicleHandlingProperty(vehicle,"steeringLock")
    setVehicleHandling(vehicle,"engineAcceleration",fast+8)
    setVehicleHandling(vehicle,"maxVelocity",maxfast+20)
    setVehicleHandling(vehicle,"tractionMultiplier",xd+0.4)
    setVehicleHandling(vehicle,"mass",masa-285)
    setVehicleHandling(vehicle,"steeringLock",stdg+0.25)
    setVehicleHandling(vehicle,"dragCoeff",coef-0.25)
    setVehicleHandling(vehicle,"driveType""awd")
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(vehicle,"vehicle:paliwo""benzyna")
    setElementData(vehicle,"vehicle:desc","PatrolĂłwka - SARA - "..i+001)
    setElementData(vehicle"vehicle:ogranicznik",1)
    addVehicleUpgrade(vehicle1025)
end

for i,v in pairs(sara_holowniki) do
    local vehicle=createVehicle(v[7], v[1], v[2], v[3])
    setVehicleColor(vehicle,2471270,255)
    setElementRotation(vehiclev[4], v[5], v[6])
    setVehicleEngineState(vehiclefalse)
    setElementFrozen(vehicletrue)
    removeVehicleSirens(vehicle)
    setElementData(vehicle,"vehicle:SARA"true)
    setVehicleColor(vehicle2471270)
    setElementFrozen(vehicle,true)
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(vehicle,"vehicle:paliwo""benzyna")
    setVehicleDamageProof(vehicletrue)
    local fast getVehicleHandlingProperty(vehicle,"engineAcceleration")
    local maxfast getVehicleHandlingProperty(vehicle,"maxVelocity")
    local masa getVehicleHandlingProperty(vehicle,"mass")
    local masa2 getVehicleHandlingProperty(vehicle,"turnMass")
    local xd getVehicleHandlingProperty(vehicle,"tractionMultiplier")
    local coef getVehicleHandlingProperty(vehicle,"dragCoeff")
    local stdg getVehicleHandlingProperty(vehicle,"steeringLock")
    setVehicleHandling(vehicle,"engineAcceleration",fast+10)
    setVehicleHandling(vehicle,"maxVelocity",maxfast+20)
    setVehicleHandling(vehicle,"tractionMultiplier",xd+0.4)
    setVehicleHandling(vehicle,"mass",masa+285)
    setVehicleHandling(vehicle,"steeringLock",stdg+0.25)
    setVehicleHandling(vehicle,"dragCoeff",coef-0.25)
    setVehicleHandling(vehicle,"driveType""awd")
    setElementData(vehicle"vehicle:ogranicznik",1)
    setElementData(vehicle,"vehicle:desc","Holownik - SARA - "..i+001)
    addVehicleUpgrade(vehicle1025)
end
 
for i,v in pairs(sara_sultan) do
    local vehicle=createVehicle(v[7], v[1], v[2], v[3])
    setVehicleColor(vehicle,2471270,255)
    setElementRotation(vehiclev[4], v[5], v[6])
    setVehicleEngineState(vehiclefalse)
    setElementFrozen(vehicletrue)
    removeVehicleSirens(vehicle)
    setElementData(vehicle,"vehicle:SARA"true)
    setElementData(vehicle,"SARA:EMC"true)
    setVehicleColor(vehicle2471270)
    setElementData(vehicle,"vehicle:rank",90)
    setElementFrozen(vehicle,true)
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(vehicle,"vehicle:paliwo""benzyna")
    setVehicleDamageProof(vehicletrue)
    local fast getVehicleHandlingProperty(vehicle,"engineAcceleration")
    local maxfast getVehicleHandlingProperty(vehicle,"maxVelocity")
    local masa getVehicleHandlingProperty(vehicle,"mass")
    local masa2 getVehicleHandlingProperty(vehicle,"turnMass")
    local xd getVehicleHandlingProperty(vehicle,"tractionMultiplier")
    local coef getVehicleHandlingProperty(vehicle,"dragCoeff")
    local stdg getVehicleHandlingProperty(vehicle,"steeringLock")
    setVehicleHandling(vehicle,"engineAcceleration",fast+20)
    setVehicleHandling(vehicle,"maxVelocity",maxfast+100)
    setVehicleHandling(vehicle,"tractionMultiplier",xd+0.4)
    setVehicleHandling(vehicle,"mass",masa+285)
    setVehicleHandling(vehicle,"steeringLock",stdg+0.25)
    setVehicleHandling(vehicle,"dragCoeff",coef-0.25)
    setVehicleHandling(vehicle,"driveType""awd")
        setElementData(vehicle"vehicle:ogranicznik",1)
    setElementData(vehicle,"vehicle:desc","Sultan - SARA - "..i+001)
    addVehicleUpgrade(vehicle1025)
end

for i,v in pairs(sara_liderka) do
    local vehicle=createVehicle(v[7], v[1], v[2], v[3])
    setVehicleColor(vehicle,2471270,255)
    setElementRotation(vehiclev[4], v[5], v[6])
    setVehicleEngineState(vehiclefalse)
    setElementFrozen(vehicletrue)
    removeVehicleSirens(vehicle)
    setElementData(vehicle,"vehicle:SARA"true)
    setElementData(vehicle,"SARA:EMC"true)
    setVehicleColor(vehicle2471270)
    setElementData(vehicle,"vehicle:rank",98)
    setElementFrozen(vehicle,true)
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(vehicle,"vehicle:paliwo""benzyna")
    setVehicleDamageProof(vehicletrue)
    local fast getVehicleHandlingProperty(vehicle,"engineAcceleration")
    local maxfast getVehicleHandlingProperty(vehicle,"maxVelocity")
    local masa getVehicleHandlingProperty(vehicle,"mass")
    local masa2 getVehicleHandlingProperty(vehicle,"turnMass")
    local xd getVehicleHandlingProperty(vehicle,"tractionMultiplier")
    local coef getVehicleHandlingProperty(vehicle,"dragCoeff")
    local stdg getVehicleHandlingProperty(vehicle,"steeringLock")
    setVehicleHandling(vehicle,"engineAcceleration",fast+20)
    setVehicleHandling(vehicle,"maxVelocity",maxfast+100)
    setVehicleHandling(vehicle,"tractionMultiplier",xd+0.4)
    setVehicleHandling(vehicle,"mass",masa+285)
    setVehicleHandling(vehicle,"steeringLock",stdg+0.25)
    setVehicleHandling(vehicle,"dragCoeff",coef-0.25)
    setVehicleHandling(vehicle,"driveType""awd")
    setElementData(vehicle"vehicle:ogranicznik",1)
    setElementData(vehicle,"vehicle:desc","Zarz?…d - Turismo - SARA - "..i+001)
    addVehicleUpgrade(vehicle1025)
end

for i,v in pairs(sara_busy) do
    local vehicle=createVehicle(v[7], v[1], v[2], v[3])
    setVehicleColor(vehicle,2471270,255)
    setElementRotation(vehiclev[4], v[5], v[6])
    setVehicleEngineState(vehiclefalse)
    setElementFrozen(vehicletrue)
    removeVehicleSirens(vehicle)
    setElementData(vehicle,"vehicle:SARA"true)
    setElementData(vehicle,"SARA:EMC"true)
    setVehicleColor(vehicle000247127024712702471270)
    setElementData(vehicle,"vehicle:rank",98)
    setElementFrozen(vehicle,true)
    setVehicleDamageProof(vehicletrue)
    local fast getVehicleHandlingProperty(vehicle,"engineAcceleration")
    local maxfast getVehicleHandlingProperty(vehicle,"maxVelocity")
    local masa getVehicleHandlingProperty(vehicle,"mass")
    local masa2 getVehicleHandlingProperty(vehicle,"turnMass")
    local xd getVehicleHandlingProperty(vehicle,"tractionMultiplier")
    local coef getVehicleHandlingProperty(vehicle,"dragCoeff")
    local stdg getVehicleHandlingProperty(vehicle,"steeringLock")
    setVehicleHandling(vehicle,"engineAcceleration",fast+20)
    setVehicleHandling(vehicle,"maxVelocity",maxfast+10)
    setVehicleHandling(vehicle,"tractionMultiplier",xd+0.4)
    setVehicleHandling(vehicle,"mass",masa+285)
    setVehicleHandling(vehicle,"steeringLock",stdg+0.25)
    setVehicleHandling(vehicle,"dragCoeff",coef-0.25)
    setVehicleHandling(vehicle,"driveType""awd")
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(vehicle,"vehicle:paliwo""benzyna")
    setElementData(vehicle"vehicle:ogranicznik",1)
    setElementData(vehicle,"vehicle:desc","Szkolenia - Bus - SARA - "..i+001)
    addVehicleUpgrade(vehicle1025)
end

for i,v in pairs(sara_policemaverick) do
    local vehicle=createVehicle(v[7], v[1], v[2], v[3])
    setElementRotation(vehiclev[4], v[5], v[6])
    setVehicleEngineState(vehiclefalse)
    setElementFrozen(vehicletrue)
    removeVehicleSirens(vehicle)
    setElementData(vehicle,"vehicle:SARA"true)
    setElementFrozen(vehicle,true)
    setVehicleDamageProof(vehicletrue)
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(vehicle,"vehicle:paliwo""benzyna")
end
 
for i,v in pairs(sara_dft) do
    local sara_dft=createVehicle(v[7], v[1], v[2], v[3])
    setVehicleColor(sara_dft2471270,255)
    setElementRotation(sara_dftv[4], v[5], v[6])
    setVehicleEngineState(sara_dftfalse)
    setElementFrozen(sara_dfttrue)
    setVehicleColor(sara_dft2471270)
    setElementFrozen(sara_dft,true)
    setVehicleDamageProof(sara_dfttrue)
    setVehicleVariant(sara_dft00)
    addVehicleUpgrade(sara_dft1025)
    setElementData(sara_dft"zaladowane"false)
    setElementData(sara_dft"laweta"true)
    local x,y,getElementPosition(sara_dft)
    colspheres[sara_dft] = createColSphere(x,y,z4)
    attachElements(colspheres[sara_dft], sara_dft0, -8, -0.605)
    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)
    setElementData(sara_dft,"vehicle:desc","Laweta - SARA - "..i+001)
    setElementData(sara_dft"vehicle:paliwo""benzyna")

end
 
addCommandHandler("sara-zaladuj", function(playercommand)
    if isPedInVehicle(playerthen
        local veh getPedOccupiedVehicle(player)
        if getElementModel(veh) == 578 and not getElementData(veh"zaladowane") and getElementData(veh"laweta"then
            local pojazd getElementsWithinColShape(colspheres[veh], "vehicle")
            if getElementModel(pojazd[1]) ~= 578 then
                attachElements(pojazd[1], veh0, -1.20.5)
                setElementData(veh"zaladowane"pojazd[1])
                setElementFrozen(pojazd[1], true)
            end
        else
            --exports["np-notyfikacje"]:noti("TwĂłj pojazd jest juĹĽ za?‚adowany"player"error")
        end
    end
end)
 
addCommandHandler("rozladuj", function(playercommand)
    if isPedInVehicle(playerthen
        local veh getPedOccupiedVehicle(player)
        if getElementModel(veh) == 578 and getElementData(veh"zaladowane"then
            local zaladunek getElementData(veh"zaladowane")
            if zaladunek and getElementType(zaladunek) == "vehicle" then
                local x,y,getElementPosition(zaladunek)
                attachElements(zaladunekveh0, -90)
                detachElements(zaladunekveh)
                setElementFrozen(zaladunekfalse)
                setElementData(veh"zaladowane"false)
                --exports["np-rnotyfikacje"]:noti("Pojazd zjecha?‚ z lawety"player)
            else
                --exports["np-notyfikacje"]:noti("Brak za?‚adunku b?…dĹş za?‚adunek to nie pojazd"player"error")
            end
        end
    end
end)
 
setTimer(function()
    for i,vehicle in pairs(getElementsByType("vehicle"resourceRoot)) do
        local x,y,getElementPosition(vehicle)
        local r1,r2,r3 getElementRotation(vehicle)
        setVehicleRespawnPosition(vehicle,x,y,z,r1,r2,r3)
        toggleVehicleRespawn(vehicle,true)
        setVehicleIdleRespawnDelay(vehicle,3600000)
        setVehicleHandling(vehicle"driveType""awd")
                --blip createBlipAttachedTo(vehicle0125517502550275.0root)
        setElementData(vehicle,"vehicle:duty","SARA")
            setElementData(vehicle,"vehicle:faction","SARA")
    end
end,1000,1)
 
-- Zsynchronizowana do licznika
function setElementSpeed(elementspeed)
    if (speed == nilthen speed 0 end
    speed tonumber(speed)
    local vx,vy,vz getElementVelocity(element)
    local acSpeed = ((vx^2+vy^2+vz^2)^(0.5))*180
    local diff speed/acSpeed
    if diff ~= diff then return end -- if the number is a 'NaN' return end.
    local x,y,getElementVelocity(element)
    setElementVelocity(element,x*diff,y*diff,z*diff)
    return true
end
 
-- odmraĹĽamy pojazdy pociagniete holownikiem!
function detachTrailer(theTruck)
    setElementFrozen(sourcefalse)
 end
addEventHandler("onTrailerAttach"getRootElement(), detachTrailer)


Komentarz Shuffle dodany 2021-05-03, 21:49kod wstaw w [code] bądź [lua]
Ostatnio zmieniony przez _jvneczek 2021-05-05, 13:02, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-03, 23:12


xyzzz^

A nic






Wiek: 18
Na forum: 1993 dni
Posty: 319
Nick w MP: Aspyk21

Piwa: 308

Respekt: 81

Ostrzeżeń: 100%
zamie?

    setElementData(vehicle,"vehicle:fuel"220)
    setElementData(vehicle,"bak"220)

na


    setElementData(sara_dft,"vehicle:fuel"220)
    setElementData(sara_dft"bak"220)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-05-05, 12:28


thomson6665







Wiek: 28
Na forum: 1916 dni
Posty: 68

Piwa: 10

Respekt: 50

"satan_" napisał/a:

Pode?lij kod od frakcji.

Kod:

function getPointFrontOfElement(element,distance)
if not element then return end

local x, y, z = getElementPosition ( element )
local rx, ry, rz = getElementRotation ( element )
x = x + (distance * (math.sin(math.rad(-rz))) )
y = y + (distance * (math.cos(math.rad(-rz))) )
return x,y,z
end

function getPositionFromElementAtOffset(element,x,y,z)
if not element then return end
if not x or not y or not z then
return x, y, z
end
local matrix = getElementMatrix ( element )
local offX = x * matrix[1][1] + y * matrix[2][1] + z * matrix[3][1] + matrix[4][1]
local offY = x * matrix[1][2] + y * matrix[2][2] + z * matrix[3][2] + matrix[4][2]
local offZ = x * matrix[1][3] + y * matrix[2][3] + z * matrix[3][3] + matrix[4][3]
return offX, offY, offZ
end

function getVehicleWheelPosition(vehicle,wheel)
local x, y, z = 0, 0, 0
local minX, minY, minZ, maxX, maxY, maxZ = getElementBoundingBox(vehicle)
if wheel == 1 then
x, y, z = getPositionFromElementAtOffset(vehicle, minX, maxY, minZ)
elseif wheel == 2 then
x, y, z = getPositionFromElementAtOffset(vehicle, minX, -maxY, minZ)
elseif wheel == 3 then
x, y, z = getPositionFromElementAtOffset(vehicle, maxX, maxY, minZ)
elseif wheel == 4 then
x, y, z = getPositionFromElementAtOffset(vehicle, maxX, -maxY, minZ)
end
return x, y, z
end

function onClientRender()
if isPedInVehicle(localPlayer) then
local vehicle = getPedOccupiedVehicle(localPlayer)
if not vehicle then return end

local stinger = getElementsByType("object")

--local wx0, wy0, wz0 = getVehicleWheelPosition(vehicle,0)
local wx1, wy1, wz1 = getVehicleWheelPosition(vehicle,1)
local wx2, wy2, wz2 = getVehicleWheelPosition(vehicle,2)
local wx3, wy3, wz3 = getVehicleWheelPosition(vehicle,3)
local wx4, wy4, wz4 = getVehicleWheelPosition(vehicle,4)

-- for visual debug wheel positions
--dxDrawLine3D(wx1, wy1, wz1, wx2, wy2, wz2, tocolor(0,255,0))
--dxDrawLine3D(wx3, wy3, wz3, wx4, wy4, wz4, tocolor(0,255,0))

for k, v in pairs(stinger) do
if getElementData(v,"isStinger") == true then
local vx, vy, vz = getElementPosition(v)
if getDistanceBetweenPoints3D(wx1, wy1, wz1, vx, vy, vz) <= 2.0 then
setVehicleWheelStates(vehicle, 1, -1, -1, -1)
end
if getDistanceBetweenPoints3D(wx2, wy2, wz2, vx, vy, vz) <= 2.0 then
setVehicleWheelStates(vehicle, -1, 1, -1, -1)
end
if getDistanceBetweenPoints3D(wx3, wy3, wz3, vx, vy, vz) <= 2.0 then
setVehicleWheelStates(vehicle, -1, -1, 1, -1)
end
if getDistanceBetweenPoints3D(wx4, wy4, wz4, vx, vy, vz) <= 2.0 then
setVehicleWheelStates(vehicle, -1, -1, -1, 1)
end
end
end
end
end
addEventHandler("onClientRender",getRootElement(), onClientRender)

function onCreateStinger(x, y, z)
if(getDistanceBetweenPoints3D(x, y, z, getElementPosition(localPlayer)) <= 10 ) then
local sound = playSound3D("plant.wav", x, y, z)
setSoundMaxDistance(sound, 10)
end
end
addEvent("onCreateStinger", true)
addEventHandler("onCreateStinger", getRootElement(), onCreateStinger)


Dalej jest ten sam problem frakcja podzia?a przez jaki? czas a nast?pnie nie da si? wej?? do pojazdu.Ten kod?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2021-09-03, 14:31


_jvneczek







Wiek: 22
Na forum: 4326 dni
Posty: 1513
Nick w MP: _jvneczek

Piwa: 3949

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

Czy problem zosta? rozwi?zany?

Postaw piwo autorowi tego posta
 

 
Tagi: frakcje
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » frakcje Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku