AnonimPlayer
Wiek: 39 Na forum: 2961 dni Posty: 5
Nick w MP: masnofest
Piwa : 1
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
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