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

Wysłany: 2018-05-04, 01:13


AnonimPlayer







Wiek: 39
Na forum: 3103 dni
Posty: 5
Nick w MP: masnofest

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
Witam!, wgra?em na sw?j serwer tuning mechaniczny, jest on zaznaczony w dw?ch pliczkach, "nitro_s" i "nitro_c", sprawa wygl?da tak ?e dzia?a jedynie MK1, Mk2, 4x4 a mk3 i gz niestety po zakupie nawet sie nie pojawia, a mam te info ?e zakupi?em i mam odda? do przecho, po czym wyjmuje i nie ma ;d jest jedynie mk1 mk2 4x4 pod spodem podsy?am kodzik tego, je?li kto? pom?g?by mi, to z g?ry dzi?kuje, b?d? wdzi?czny i wynagrodz? to zimnym :piwo:

to jest nitro_c)


GUIEditor = {
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(330, 200, 405, 460, "==>MONTOWANIE MK<==", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 0.83)
 
        GUIEditor.button[1] = guiCreateButton(23, 37, 115, 58, "MK1\n2,000,000 PLN", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
 
        GUIEditor.button[2] = guiCreateButton(145, 37, 115, 58, "MK2\n4,000,000 PLN", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
 
        GUIEditor.button[3] = guiCreateButton(267, 37, 115, 58, "MK3\n5,000,000 PLN", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
       
                GUIEditor.button[4] = guiCreateButton(267, 115, 115, 59, "NAPED;4x4\n3,000,000 PLN", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
       
                        GUIEditor.button[5] = guiCreateButton(145, 115, 115, 59, "Gwintowe Zawieszenie\n2,000,000 PLN", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
       
        GUIEditor.button[8] = guiCreateButton(11, 369, 383, 81, "Zamknij okno", false, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA")    
    end
)
 
addEventHandler("onClientResourceStart",resourceRoot,
function()
guiSetVisible(GUIEditor.window[1],false)
end
)
 
marker = createMarker(-2297.61,-123.12,35.32, 'cylinder', 4, 255, 0, 0, 120)
 
 
function hit(plr,md)
if plr ~= localPlayer then return end
if not isPedInVehicle(localPlayer) then return end
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", marker, hit)
 
 
function mk1()
if source ~= GUIEditor.button[1] then return end
    triggerServerEvent("mk1", localPlayer)
    guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
 
addEventHandler ( "onClientGUIClick", root, mk1)
 
 
function mk2()
if source ~= GUIEditor.button[2] then return end
    triggerServerEvent("mk2", localPlayer)
    guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
 
addEventHandler ( "onClientGUIClick", root, mk2)
 
function mk3()
if source ~= GUIEditor.button[3] then return end
    triggerServerEvent("mk3", localPlayer)
    guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
 
addEventHandler ( "onClientGUIClick", root, mk3)
 
function naped()
if source ~= GUIEditor.button[4] then return end
    triggerServerEvent("naped", localPlayer)
    guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
 
addEventHandler ( "onClientGUIClick", root, naped)
 
function gz()
if source ~= GUIEditor.button[5] then return end
    triggerServerEvent("gz", localPlayer)
    guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
 
addEventHandler ( "onClientGUIClick", root, gz)
 
function zamknij()
if source ~= GUIEditor.button[8] then return end
   guiSetVisible(GUIEditor.window[1],false)
end
addEventHandler ( "onClientGUIClick", root, zamknij)
 
 
function zamykamy()
if source ~= GUIEditor.button[8] then return end
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
 
addEventHandler ( "onClientGUIClick", root, zamykamy)




(A TUTAJ nitro_s

--[[
@author Mikael <mikael.mta@wp.pl>
Skrypt wykonany dla New World 2016
]]
 
mk1 = 2000000
mk2 = 4000000
mk3 = 5000000
naped = 3000000
gz = 2000000
 
 
local licz = {}
local t=createElement('text')
setElementData(t,'name','Automatyczny monta? tuningu mechanicznego')
setElementPosition(t,-2297.61,-123.12,35.32)
 
 
 
addEvent("mk1", true)
addEventHandler("mk1", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(mk1)) then
  local id = getElementData(pojazd, "vehicle:id")
  exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET mk1=1 WHERE id=?", id)
         outputChatBox("* Pomy?lnie zamontowano MK1.", source,true)
     outputChatBox("* Oddaj auto do przecho aby zobaczy? efekty!", source,true)
         takePlayerMoney( source, mk1 )
    else
         outputChatBox("* Nie sta? Ci? na to.", source,true)
end
end
)
 
 
addEvent("mk2", true)
addEventHandler("mk2", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(mk2)) then
  local id = getElementData(pojazd, "vehicle:id")
  exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET mk2=1 WHERE id=?", id)
     outputChatBox("* Pomy?lnie zamontowano MK2.", source,true)
     outputChatBox("* Oddaj auto do przecho aby zobaczy? efekty!", source,true)
     takePlayerMoney( source, mk2 )
  else
     outputChatBox("* Nie sta? Ci? na to.", source,true)
end
end
)
 
addEvent("mk3", true)
addEventHandler("mk3", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(mk3)) then
  local id = getElementData(pojazd, "vehicle:id")
  exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET mk3=1 WHERE id=?", id)
     outputChatBox("* Pomy?lnie zamontowano MK3.", source,true)
     outputChatBox("* Oddaj auto do przecho aby zobaczy? efekty!", source,true)
     takePlayerMoney( source, mk3 )
  else
     outputChatBox("* Nie sta? Ci? na to.", source,true)
end
end
)
 
 
addEvent("naped", true)
addEventHandler("naped", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(naped)) then
  local id = getElementData(pojazd, "vehicle:id")
  exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET naped=1 WHERE id=?", id)
         outputChatBox("* Pomy?lnie zamontowano NAPED 4x4.", source,true)
     outputChatBox("* Oddaj auto do przecho aby zobaczy? efekty!", source,true)
         takePlayerMoney( source, naped )
    else
         outputChatBox("* Nie sta? Ci? na to.", source,true)
end
end
)
 
addEvent("gz", true)
addEventHandler("gz", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(gz)) then
  local id = getElementData(pojazd, "vehicle:id")
  exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET gz=1 WHERE id=?", id)
     outputChatBox("* Pomy?lnie zamontowano GZ.", source,true)
     outputChatBox("* Oddaj auto do przecho aby zobaczy? efekty!", source,true)
     takePlayerMoney( source, gz )
  else
     outputChatBox("* Nie sta? Ci? na to.", source,true)
end
end
)



(a tu meta jakby co :/ )


<meta>
     <info author="MiKaeL"/>
    <script src="nitro_s.lua" type="server" />
    <script src="nitro_c.lua" type="client" />
</meta>


Ostatnio zmieniony przez AnonimPlayer 2018-05-04, 23:18, w całości zmieniany 4 razy  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-05-04, 15:38


Xrent

-






Wiek: 22
Na forum: 3188 dni
Posty: 230
Nick w MP: Pazdam

Piwa: 535

Respekt: 295,3
Respekt: 295,3Respekt: 295,3Respekt: 295,3

Ostrzeżeń: 60%
daj kod w [.lua] [./lua] bez kropek oraz db3

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-05-04, 23:09


AnonimPlayer







Wiek: 39
Na forum: 3103 dni
Posty: 5
Nick w MP: masnofest

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
Nie rozumiem, gdzie znajduj? si? te "db3" jakby? m?g? wskaza? lokalizacje to by by?o mi ?atwiej to wstawi? ;/ jakby to pomog?o to mam postawiony GM na pys 3.0.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-05-05, 10:58


Xrent

-






Wiek: 22
Na forum: 3188 dni
Posty: 230
Nick w MP: Pazdam

Piwa: 535

Respekt: 295,3
Respekt: 295,3Respekt: 295,3Respekt: 295,3

Ostrzeżeń: 60%
Je?li, masz panel admina to wpisz /debugscript 3 i podaj b??dy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-05-05, 11:17


Qwertick

Coming soon...






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

Piwa: 2727

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

A masz w??czony zas?b "Rh"?

Podpis

Kontakt
Discord: Qwertick#1210

Postaw piwo autorowi tego posta
 

 
Tagi: nie :: działający :: tuning :: mechaniczny
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