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

Wysłany: 2020-06-01, 18:04


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
Witam, chcia?em zrobi? tak aby po wpisaniu w skrypcie id wariantu (np 255,255) on pokazywa? si? na aucie, oraz ?eby ten wariant by? po kupnie auta. To co zrobi?em wida? na przyk?adzie Manany

{1578.56, -1530.7313.3012.9model=410dmax=97343dmin=96323price=math.random(2500,2600), gdzie="cygan"v1=255v2=255}, -- manana

local v1,v2 vehicles[slot].war


--[[
    Komisy samochodowe
    @author value <value2k@gmail.com>
    @EditDylemaT929 :)
    @Edit2Mazeusz* :)
    Nie masz prawa u?ytego kodu bez mojej zgody
]]
createBlip(1422.18, -1175.2825.9855,2,0,0,0,0,0,275) -- Salon zwykly
createBlip(1885.88,-1864.87,13.5855,2,0,0,0,0,0,275) --cygan
--createBlip(170.51618.405.5755,2,0,0,0,0,0,275) -- Salon offroad
createBlip(-1974.28288.1334.8855,2,0,0,0,0,0,275) -- salon sportowy wajrusa
createBlip(1504.46, -1466.2325.93,55,2,0,0,0,0,0,275) -- salon z premierkiem
createBlip(-1664.901208.6113.54,55,2,0,0,0,0,0,275) -- lowridery i motory
--createBlip(1981.602373.2311.10,55,2,0,0,0,0,0,275) -- Klasyki i sportowe
--createBlip(2027.301008.0611.16,55,2,0,0,0,0,0,275) -- Sandking
--createBlip(932.09, -1442.3213.55,39,0,0,0,0,0,39) -- URZ?D

local object=createObject(1365807.44,-650.83,-70.55000)
setElementDimension(object,1)
local object2=createObject(1365807.44,-650.83,-68.55000)
setElementDimension(object2,1)
-- magazyn ^
-- salon lowrider
createObject(3578,1737.23,330.55,26.80,0,0,90)
--local t=createElement("text")
--setElementPosition(t,2501.54,-1741.87,13.55+2)
--setElementInterior(t,0)
--setElementData(t,"name","Wejscie z ty?u")

local vehicles = {}
local komis_shapes = {}
local slots = {
    -- Grotti
    556.57, -1305.7216.9826.2model=411dmax=50dmin=0price=math.random(900000,1200000), gdzie="grotti"}, -- Inf
    548.56, -1305.9016.9826.2model=451dmax=50dmin=0price=math.random(800000,890000), gdzie="grotti"}, -- Turek
    533.65, -1306.0416.98-0.1330.0model=541dmax=50dmin=0price=math.random(750000,800000), gdzie="grotti"}, -- bullet
    525.45, -1305.8416.98330.0model=415dmax=50dmin=0price=math.random(615000,675000), gdzie="grotti"}, -- cheeat
    
    --- SF
    { -1945.77257.3435.1346.9model=560dmax=50dmin=0price=math.random(450000,460000), gdzie="sportowe"}, -- sult
    { -1945.63269.5135.1346.9model=562dmax=50dmin=0price=math.random(350000,360000), gdzie="unikat"}, -- elegy
    --{ -1954.50304.1835.13133.4model=559dmax=50dmin=0price=math.random(75000,475000), gdzie="sportowe"}, -- jester/KOMIS
    --{ 1800.15, -1195.9641.90295.6model=477dmax=0dmin=0price=math.random(380000,480000), gdzie="sportowe"}, -- zr-350    
    { -1957.77304.9335.13125.2model=506dmax=50dmin=0price=math.random(200000,205000), gdzie="sportowe"}, -- stg
    { -1960.04256.8640.7061.8model=429dmax=50dmin=0price=math.random(250000,270000), gdzie="sportowe"}, -- banshe
    { -1960.04269.4340.70+0.161.7model=480dmax=0dmin=0price=math.random(100000,150000), gdzie="sportowe"}, -- comet
    { -1960.0428240.7061.7model=565dmax=50dmin=0price=math.random(230000,240000), gdzie="sportowe"}, -- flash
    { -1960.49303.5840.70127.4model=517dmax=50dmin=0price=math.random(450000,460000), gdzie="sportowe"}, -- majestic merc gt
    --{ -1945.92257.304132.6model=579dmax=0dmin=0price=math.random(420000,440000), gdzie="sportowe"}, -- Huntley
    
        
    -- Salon motory/lowrider
    { -1660.411221.4120.75284.0model=462dmax=0dmin=0price=math.random(25000,26000), gdzie="moto"}, -- Faggi
    { -1657.021217.8420.76284.0model=463dmax=0dmin=0price=math.random(20000,252000), gdzie="moto"}, -- freeway
    { -1649.521210.8320.76284.0model=468dmax=0dmin=0price=math.random(123000,140000), gdzie="moto"}, -- sanchez
    { -1646.991204.5320.76284.0model=581dmax=0dmin=0price=math.random(403000,440000), gdzie="moto"}, -- BF
    --{ 2569.45989.3810.4290model=521dmax=0dmin=0price=math.random(430000,434000), gdzie="moto"}, -- FCR
    --{ 2569.49992.9610.4390model=522dmax=0dmin=0price=math.random(523000,540000), gdzie="moto"}, -- NRG
    --{ 2569.27996.2210.0890model=471dmax=0dmin=0price=math.random(33000,340000), gdzie="moto"}, -- quad
    
    -- Cygany LS/Most
    {1578.56, -1530.7313.3012.9model=410dmax=97343dmin=96323price=math.random(2500,2600), gdzie="cygan"v1=255v2=255}, -- manana
    {1894.25, -1852.2913.2+0.1125.2model=401dmax=97343dmin=92323price=math.random(4750,4800), gdzie="cygan"}, -- Brabura
    --{1896.15, -1857.6113.34-0.1131model=436dmax=99999dmin=90000price=math.random(25000,35000), gdzie="cygan"}, -- Previon
    {1596.90, -1500.7213.33+0.3121.7model=418dmax=97000dmin=92323price=math.random(1550,1600), gdzie="cygan"}, -- Moonbeam
    {1870.77, -1857.5913.40343.8model=543dmax=97998dmin=90000price=math.random(3500,3600), gdzie="cygan"}, -- Sadler
    {1885.49, -1862.0713.23+0.3212.8model=478dmax=97998dmin=97333price=math.random(2990,3500), gdzie="cygan"}, -- walton
    {1587.72, -1499.2213.31230.3model=404dmax=97000dmin=90333price=math.random(1560,1660), gdzie="cygan"}, -- perek

    -- Zwyk?e 
    {1390.54, -1219.2474.6838.6model=558dmax=100dmin=0price=math.random(195000,255000), gdzie="zwykle"}, -- urans
    {1403.26, -1208.3674.89114.1model=603dmax=100dmin=0price=math.random(130000,150000), gdzie="zwykle"}, -- pohiniex
    {1403.37, -1201.6574.81110.8model=602dmax=100dmin=0price=math.random(105000,115000), gdzie="zwykle"}, -- alha
    {1400.76, -1218.7174.7841.8model=587dmax=100dmin=0price=math.random(105000,115000), gdzie="zwykle"}, -- euroski
    {1380.25, -1219.0774.8637.3model=475dmax=100dmin=0price=math.random(37000,37500), gdzie="zwykle"}, --sabre
    --{1371.02, -1217.9174.74302.0model=555dmax=0dmin=0price=math.random(530000,640000), gdzie="zwykle"}, -- winsor
    --{1371.33, -1207.9374.91300.6model=517dmax=0dmin=0price=math.random(110000,130000), gdzie="zwykle"}, -- majestic
    --{1377.28, -1200.7374.88219.2model=402dmax=0dmin=0price=math.random(215000,299000), gdzie="zwykle"}, -- Buffalo/Komis
     --{2963.58, -804.1711.48297.2model=555dmax=0dmin=0price=math.random(449000,500000), gdzie="zwykle"}, -- Windsor
    --{2636.391199.7110.81294.4model=477dmax=0dmin=0price=math.random(410000,520000), gdzie="zwykle"}, -- zr-350
    
    -- Zwyk?e/offrad
    --{190.43593.625.6862.7model=500dmax=500dmin=0price=math.random(45000,155000), gdzie="zwykle"}, -- mesa
    --{182.98588.955.73-0.2331.6model=554dmax=500dmin=0price=math.random(80000,90000), gdzie="zwykle"}, -- yose
    --{160.41613.175.72-0.1346.0model=422dmax=500dmin=0price=math.random(15000,120000), gdzie="zwykle"}, -- bobkat/KOMIS
    --{164.31633.795.77-0.2165.3model=470dmax=500dmin=0price=math.random(450000,460000), gdzie="unikat2"}, -- pat
    --{150.78626.915.69256.9model=482dmax=500dmin=0price=math.random(47500,48000), gdzie="zwykle"}, --burrit
    --{170.47624.405.35163.4model=424dmax=500dmin=0price=math.random(227500,247500), gdzie="zwykle"}, --bf
    --{171.66605.695.43335.9model=568dmax=500dmin=0price=math.random(227500,247500), gdzie="zwykle"}, --bantitotot
    
    {1504.75, -1458.5525.96270.0model=426dmax=100dmin=0price=math.random(30000,40000), gdzie="zwykle"}, -- premir
    --{1513.15, -1472.7126.100.6model=445dmax=0dmin=0price=math.random(110000,130000), gdzie="zwykle"}, -- adam/Komis
    {1529.84, -1472.4026.0390.2model=561dmax=100dmin=0price=math.random(85000,99000), gdzie="zwykle"}, -- starataum
    --{1521.51, -1472.6226.100.8model=405dmax=0dmin=0price=math.random(145000,155000), gdzie="zwykle"}, -- sent
    {1530.28, -1465.6226.22-0.3990.8model=589dmax=100dmin=0price=math.random(55000,65000), gdzie="zwykle"}, -- klub
    --{1521.51, -1472.6226.100model=540dmax=0dmin=0price=math.random(127500,147500), gdzie="zwykle"}, --vic
    --{1529.52, -1458.7425.9690.0model=542dmax=0dmin=0price=math.random(330000,340000), gdzie="zwykle"}, -- clower/komis
    {1504.17, -1471.7125.94270.6model=496dmax=100dmin=0price=math.random(30000,40000), gdzie="zwykle"}, -- blista
    --{1504.46, -1466.2325.93270.2model=533dmax=0dmin=0price=math.random(185000,199000), gdzie="zwykle"}, -- feltzer
    
    -- Salon Motory/lowrider SF
    { -1660.801213.227.12273.1model=567dmax=50dmin=0price=math.random(150000,175000), gdzie="sportowe"}, -- Savanna 567 tornadto 576
    { -1648.431207.7513.54-0.1230.4model=536dmax=50dmin=0price=math.random(260000,270000), gdzie="sportowe"}, -- blade 536 broodway 575
    { -1661.541221.3213.54-0.1273.7model=535dmax=50dmin=0price=math.random(200000,270000), gdzie="sportowe"}, -- slawek 535 voodo 412
    { -1664.901208.6113.54-0.1303.8model=534dmax=50dmin=0price=math.random(110000,140000), gdzie="sportowe"}, -- remek
    
    -- Salon Podmianek
    --{ 2001.772368.9710.9964model=494dmax=0dmin=0price=math.random(7500000,8000000), gdzie="unikat3"}, -- gt
    --{ 2001.632377.9010.82-0.1105model=503dmax=0dmin=0price=math.random(30000000,31000000), gdzie="unikat2"}, -- ferrarka
    --{ 1966.232361.8816.59-0.1324model=566dmax=0dmin=0price=math.random(5500000,5500500), gdzie="unikat3"}, -- Cadilak
    --{ 1971.122378.1010.62256model=551dmax=0dmin=0price=math.random(5750000,6000000), gdzie="unikat3"}, -- m5
    --{{ 1982.732378.7410.87258model=516dmax=0dmin=0price=math.random(6500000,6700000), gdzie="unikat2"}, -- rs6
    --{{ 1956.672372.3611.16270model=579dmax=0dmin=0price=math.random(35000000,36000000), gdzie="unikat2"}, -- g500
    --{{ 1978.642368.2910.86-0.274model=421dmax=0dmin=0price=math.random(20000000,25000000), gdzie="unikat2"},    -- camaro/mercedes
    --{{ 1969.542362.5110.72334model=547dmax=0dmin=0price=math.random(14500000,15500000), gdzie="unikat2"},  --e30
    --{{ 2001.272368.9716.5778model=585dmax=0dmin=0price=math.random(15500000,15600000), gdzie="unikat3"},  --300sel
    --{{ 2001.032373.6616.19102model=507dmax=0dmin=0price=math.random(20000000,21000000), gdzie="unikat2"},  --300sl
    --{{ 1992.522368.2816.1370model=550dmax=0dmin=0price=math.random(25500500,25600500), gdzie="unikat3"},  --deluxe
    --{{ 1959.922378.3211.02258model=489dmax=0dmin=0price=math.random(45500500,55600500), gdzie="unikat2"}, -- Barabus ten lepszy
    --{{ 1958.552364.1310.61+0.4303model=400dmax=0dmin=0price=math.random(39000000,45000000), gdzie="unikat2"}, -- barabus gorszy
    --{{ 1956.002372.7316.60240.3model=405dmax=0dmin=0price=math.random(4000000,6000000), gdzie="unikat2"}, -- Bmw m5
    
    -- Lotnisko LV 
    1342.171295.2811.20model=593dmax=0dmin=0price=math.random(500000,510000), gdzie="unikat3"},    -- DODO
    1321.591295.1211.2+0.10model=513dmax=0dmin=0price=math.random(1500000,1528000), gdzie="unikat3"}, -- stunt
    1289.641276.0410.82, -45model=469dmax=0dmin=0price=math.random(500000,528000), gdzie="unikat3"}, -- sees
    1278.441323.8510.82+1270model=519dmax=0dmin=0price=math.random(10280000,10290000), gdzie="unikat3"}, -- premium
    1289.991298.3110.82270model=487dmax=0dmin=0price=math.random(1280000,1328000), gdzie="unikat3"}, -- mav
    
    -- ARKADJA CZ?STO ODSWIESZAXD!!!!
    {2848.31, -2383.4112.7990.5model=492dmax=90000dmin=0price=math.random(22000,35200), gdzie="zwykle"}, -- Greenwod
    {2848.56, -2393.0212.8490.5model=549dmax=90000dmin=0price=math.random(12000,22200), gdzie="zwykle"}, -- TAMPA
    {2843.74, -2403.3712.9450.9model=540dmax=90000dmin=0price=math.random(12000,22200), gdzie="zwykle"}, -- VIC
    {2828.13, -2407.7712.891model=458dmax=90000dmin=0price=math.random(22000,40200), gdzie="zwykle"}, -- STOLARIS
}

addEventHandler("onResourceStart"resourceRoot, function ()
    for i,v in ipairs(slots) do
        komis_shapes[i] = createColSphere(v[1], v[2], v[3], 3)
        setElementData(komis_shapes[i], "i"i)
        createKomisVehicle(i)

        addEventHandler("onColShapeHit"komis_shapes[i], function (hit,dim)
            if getElementType(hit) == "player" and getElementData(komis_shapes[i], "komis:veh"then
                triggerClientEvent(hit"onClientAddNotification"hit,"Zainteresowa? ci? ten pojazd? /kuppojazd")
            end
        end)

    end
end)

addCommandHandler("kuppojazd", function (plrcmd)
    local shape isPlayerInVehicleColShape(plr)
    if not shape then return end
    local veh getElementData(shape"komis:veh")
    if not veh then return end
    local slot getElementData(shape"komis:slot")

    local price vehicles[slot].price
    local money getPlayerMoney(plr)
    if price money then
        triggerClientEvent(plr"onClientAddNotification"plr,"* Nie sta? ci? na kupno tego pojazdu. Id? zar?b na pracach dorywczych i wr?c p??niej!")
        return
    end
    takePlayerMoney(plrprice)

    local x,y,getElementPosition(veh)
    local rx,ry,rz getElementRotation(veh)
    local i getElementInterior(veh)
    local d getElementDimension(veh)
    local pos x..", "..y..", "..z..", "..rx..", "..ry..", "..rz..", "..i..", "..d

    local r1,g1,b1r2,g2,b2r3,g3,b3r4,g4,b4 getVehicleColor(vehtrue)
    local color r1..", "..g1..", "..b1..", "..r2..", "..g2..", "..b2

    local owner getElementData(plr"player:sid")
    local model getElementModel(veh)
    local dist vehicles[slot].mileage
    local poj vehicles[slot].poj
    local rodzaj vehicles[slot].rodzaj
    local gdzie vehicles[slot].gdzie
    local v1,v2 vehicles[slot].war

    destroyElement(veh)
    setElementData(shape"komis:veh"false)
    setElementData(shape"salonowe"false)

    local qnumid exports["pystories-db"]:dbGet("INSERT INTO pystories_vehicles SET pos=?, fuel=50, bak=50, mileage=?, ownedPlayer=?, parking=1, pojemnosc=?, rodzaj=?, color=?, model=?, v1=?, v2=?"posdistownerpojrodzajcolormodelv1v2)
    if q then
        createKomisVehicle(slot)
        triggerClientEvent(plr"onClientAddNotification"plr,"Gratulacje! Zakupi?e? sw?j pierwszy lub kolejny pojazd na serwerze! Pojazd zosta? przeniesiony do przechowywalni")
        setElementData(plr"vehicle:desc"false)
        setElementData(plr"vehicle:mileage"vehicles[slot].mileage)
        setElementData(plr"vehicle:rodzaj"vehicles[slot].rodzaj)
        setElementData(plr"vehicle:poj"vehicles[slot].poj2)
    else
        triggerClientEvent(plr"onClientAddNotification"plr," Wyst?pi? problem z kupnem pojazdu! Zg?o? to administracji serwera!")
    end
end)

function createKomisVehicle(slot)
    if #getElementsWithinColShape(komis_shapes[slot]) > 0 then setTimer(createKomisVehicle, 3600000, 1, slot) return end

    vehicles[slot] = {}
    
    vehicles[slot].mileage math.random(slots[slot].dminslots[slot].dmax)
    vehicles[slot].price slots[slot].price

    vehicles[slot].veh createVehicle(slots[slot].modelslots[slot][1], slots[slot][2], slots[slot][3], 00slots[slot][4])
    setElementFrozen(vehicles[slot].vehtrue)
    setVehicleDamageProof(vehicles[slot].vehtrue)
    setVehicleLocked(vehicles[slot].vehtrue)
    setElementData(vehicles[slot].veh"komis:veh"true)
    setElementData(vehicles[slot].veh"recznySalonData"true)
    addEventHandler("onVehicleStartEnter"resourceRoot, function()
    cancelEvent()
end)

    setElementData(komis_shapes[slot], "komis:veh"vehicles[slot].veh)
    setElementData(komis_shapes[slot], "komis:slot"slot)
    setElementData(vehicles[slot].veh"komis:veh"true)
    setElementData(vehicles[slot].veh"salonowe"true)
    setVehicleOverrideLights vehicles[slot].veh)
    setVehicleColor(vehicles[slot].veh255,255,255)
    setVehicleHeadLightColor(vehicles[slot].veh255255255)

    if slots[slot].gdzie == "sportowe" then
    vehicles[slot].rodzaj "Benzyna"
    vehicles[slot].poj math.random(6,11)
    vehicles[slot].gdzie "sportowe"
    elseif slots[slot].gdzie == "dohertysf2" then
    vehicles[slot].rodzaj "Diesel"
    vehicles[slot].poj math.random(4,6)
    vehicles[slot].gdzie "dohertysf2"
    elseif slots[slot].gdzie == "cygan" then
    vehicles[slot].rodzaj "Benzyna"
    vehicles[slot].poj math.random(1,5)
    vehicles[slot].gdzie "cygan"
    elseif slots[slot].gdzie == "zwykle" then
    vehicles[slot].rodzaj "Diesel"
    vehicles[slot].poj math.random(3,8)
    elseif slots[slot].gdzie == "xd" then
    vehicles[slot].rodzaj "Diesel"
    vehicles[slot].poj math.random(6,7)
    vehicles[slot].gdzie "unikat"
    elseif slots[slot].gdzie == "unikat" then
    vehicles[slot].rodzaj "Diesel"
    vehicles[slot].poj math.random(7,8)
    vehicles[slot].gdzie "unikat"
    elseif slots[slot].gdzie == "unikat2" then
    vehicles[slot].rodzaj "Benzyna"
    vehicles[slot].poj math.random(9,12)
    vehicles[slot].gdzie "unikat2"
    elseif slots[slot].gdzie == "unikat3" then
    vehicles[slot].rodzaj "Diesel"
    vehicles[slot].poj math.random(9,12)
    vehicles[slot].gdzie "unikat3"
    elseif slots[slot].gdzie == "moto" then
    vehicles[slot].rodzaj "Benzyna"
    vehicles[slot].poj math.random(3,7)
    vehicles[slot].gdzie "moto"
    elseif slots[slot].gdzie == "off" then
    vehicles[slot].rodzaj "Diesel"
    vehicles[slot].poj math.random(11,13)
    vehicles[slot].gdzie "off"
    elseif slots[slot].gdzie == "grotti" then
    vehicles[slot].rodzaj "Benzyna"
    vehicles[slot].poj math.random(12,23)
    vehicles[slot].gdzie "grotti"
    end

    if vehicles[slot].poj == 1 then
    vehicles[slot].poj2 1.2
    elseif vehicles[slot].poj == 2 then
    vehicles[slot].poj2 1.4
    elseif vehicles[slot].poj == 3 then
    vehicles[slot].poj2 1.6
    elseif vehicles[slot].poj == 4 then
    vehicles[slot].poj2 1.8
    elseif vehicles[slot].poj == 5 then
    vehicles[slot].poj2 1.9
    elseif vehicles[slot].poj == 6 then
    vehicles[slot].poj2 2.0
    elseif vehicles[slot].poj == 7 then
    vehicles[slot].poj2 2.2
    elseif vehicles[slot].poj == 8 then
    vehicles[slot].poj2 2.4
    elseif vehicles[slot].poj == 9 then
    vehicles[slot].poj2 2.6
    elseif vehicles[slot].poj == 10 then
    vehicles[slot].poj2 2.8
    elseif vehicles[slot].poj == 11 then
    vehicles[slot].poj2 2.9
    elseif vehicles[slot].poj == 12 then
    vehicles[slot].poj2 3.0
    elseif vehicles[slot].poj == 13 then
    vehicles[slot].poj2 3.2
    elseif vehicles[slot].poj == 14 then
    vehicles[slot].poj2 3.4
    elseif vehicles[slot].poj == 15 then
    vehicles[slot].poj2 3.5
    elseif vehicles[slot].poj == 16 then
    vehicles[slot].poj2 3.7
    elseif vehicles[slot].poj == 17 then
    vehicles[slot].poj2 3.9
    elseif vehicles[slot].poj == 18 then
    vehicles[slot].poj2 4.0
    elseif vehicles[slot].poj == 19 then
    vehicles[slot].poj2 4.2
    elseif vehicles[slot].poj == 20 then
    vehicles[slot].poj2 4.5
    elseif vehicles[slot].poj == 21 then
    vehicles[slot].poj2 4.8
    elseif vehicles[slot].poj == 22 then
    vehicles[slot].poj2 5.0
    elseif vehicles[slot].poj == 23 then
    vehicles[slot].poj2 5.2
    elseif vehicles[slot].poj == 24 then
    vehicles[slot].poj2 5.5
    end

    setElementData(vehicles[slot].veh"vehicle:desc""Pojazd: #00ff00"..getVehicleName(vehicles[slot].veh).."\n#ffffffKoszt: #00ff00"..slots[slot].price.." PLN\n#ffffffPrzebieg: #00ff00"..vehicles[slot].mileage.." km\n#ffffffPojemno?? Silnika: #00ff00"..vehicles[slot].poj2.." cm3\n#ffffffRodzaj paliwa: #00ff00"..vehicles[slot].rodzaj.."\n#ffffffPojemno?? Baku: #00ff0050 L\n\n#ffffffZainteresowa? ci? ten pojazd?\nPodejdz i wpisz #00ff00/kuppojazd")
end

function isPlayerInVehicleColShape(player)
    for i,v in ipairs(komis_shapes) do
        if isElementWithinColShape(playervthen return v end
    end
    return false
end
local t=createElement("text")
setElementData(t,"name","Zakaz parkowania na terenie cygana!")
setElementData(t,"scale",1.2)
setElementPosition(t,1896.80,-1879.49,13.50+1)

local wejscie1 createMarker(1421.94, -1180.1825.99+0.8"arrow"125515351)
local wyjscie1 createMarker(1407.22, -1217.4075.05+0.8"arrow"125515351)
addEventHandler("onMarkerHit",wejscie1,function(el,md)
    if getElementType(el) == "vehicle" then return end
    if getPedOccupiedVehicle(elthen return end
    setElementPosition(el,1404.95, -1217.1675.05)
end)
 
addEventHandler("onMarkerHit",wyjscie1,function(el,md)
    if getElementType(el) == "vehicle" then return end
    if getPedOccupiedVehicle(elthen return end
    setElementPosition(el,1421.14, -1176.6125.99)
end)

--[[local wejscie23 createMarker(1800.27, -1253.7813.65+0.8"arrow"125515351)
local wyjscie23 createMarker(1812.14, -1193.3242.15+0.8"arrow"125515351)
addEventHandler("onMarkerHit",wejscie23,function(el,md)
    if getElementType(el) == "vehicle" then return end
    if getPedOccupiedVehicle(elthen return end
    setElementPosition(el,1812.38, -1194.7242.15)
end)
 
addEventHandler("onMarkerHit",wyjscie23,function(el,md)
    if getElementType(el) == "vehicle" then return end
    if getPedOccupiedVehicle(elthen return end
    setElementPosition(el,1800.11, -1255.6213.64)
end)
]]
local wejscie233 createMarker(1518.62, -1453.9214.21+0.8"arrow"125515351)
local wyjscie233 createMarker(1517.37, -1454.9026.22+0.8"arrow"125515351)
setElementDimension(wyjscie2330)
addEventHandler("onMarkerHit",wejscie233,function(el,md)
    if getElementType(el) == "vehicle" then return end
    if getPedOccupiedVehicle(elthen return end
    setElementPosition(el,1517.28, -1457.7226.22+0.1)
        setElementDimension(el0)

end)
addEventHandler("onMarkerHit",wyjscie233,function(el,md)
    if getElementType(el) == "vehicle" then return end
    if getPedOccupiedVehicle(elthen return end
    setElementPosition(el,1518.69, -1450.1613.55+0.1)
        setElementDimension(el0)
end)


Podpis


Modern Stories
Discord
https://discord.gg/MRJSYq8
Forum
https://msmta.pl
Panel Gracza
https://panel.msmta.pl
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-01, 18:35


Qwertick

Coming soon...






Wiek: 23
Na forum: 3577 dni
Posty: 472
Nick w MP: Qwertick

Piwa: 2726

Respekt: 215,8
Respekt: 215,8Respekt: 215,8


Więcej informacji znajdziesz w Wikipedii MTA:

setVehicleVariant

Więcej informacji znajdziesz w Wikipedii MTA:

getVehicleVariant


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-01, 18:36


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
"Qwertick" napisał/a:


Więcej informacji znajdziesz w Wikipedii MTA:

setVehicleVariant

Więcej informacji znajdziesz w Wikipedii MTA:

getVehicleVariant


No tak tylko jak to wszystko podpi??

Podpis


Modern Stories
Discord
https://discord.gg/MRJSYq8
Forum
https://msmta.pl
Panel Gracza
https://panel.msmta.pl
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-01, 21:14


iksorek







Wiek: 25
Na forum: 2560 dni
Posty: 10
Nick w MP: XoreK

Piwa: 95

Respekt: 60

Widz? ?e nikt nie chce a? tak pom?c wiec ja pomog?.
Do tabeli pystories-vehicles dodaj kolumn? „wariant” INT z warto?ci? 11 i zdefiniuj to na 0. Wejd? potem w skrypt pystories-vehicles i dodaj w zapisywaniu pojazd?w i tam dodajesz funkcje kt?ra ustala ze wariant np. (0,1) gdy w bazie masz 0 nie ma np dachu a jak w bazie danych auto ma 1 to ustawiania wariant np 1,1 ten kt?ry ma dach. Jak co? to pisz dc XoreK #1053

Komentarz NotPaladyn dodany 2020-06-01, 21:31Nie podawaj swojego discorda w dziale LUA, pomagamy na forum
Ostatnio zmieniony przez NotPaladyn 2020-06-01, 21:31, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-06-01, 21:20


Matikmontana

Modern Stories






Wiek: 22
Na forum: 2473 dni
Posty: 423
Nick w MP: Mazeusz*

Piwa: 1015

Respekt: 130
Respekt: 130

Ostrzeżeń: 60%
Tak. Dzi?ki ale nie o to chodzi, to ju? dawno mia?em zrobione tylko teraz musz? zrobi? aby pojazdy losowo si? respi?y z r??nymi wariantami..

[ Dodano: 2020-06-02, 01:02 ]
Mo?na lock. Pobawi?em si? troch? i zrobi?em :D

Postaw piwo autorowi tego posta
 

 
Tagi: warianty :: salonach
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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