Ezzel próbálkozom én is egy pár napja, meglátom ,hogy valaki rakott ki egy kiinduló scriptet, erre nem elérhető már :( xd
Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek megjelenítése menü
availableTuningMarkers = {
-- x y z cameramatrix (1-6)
{1053.9970703125, -901.6083984375, 43.037635803223, 181.75784301758 },
{1026.5621337891, -902.75164794922, 42.2184715271, -1571.0966796875, 13.546875, 1564.5821533203, -1560.9291992188, 13.546875},
}
availableWheelSizes = {
[\"front\"] = {
[\"verynarrow\"] = {0x100, 1},
[\"narrow\"] = {0x200, 2},
[\"wide\"] = {0x400, 4},
[\"verywide\"] = {0x800, 5}
},
[\"rear\"] = {
[\"verynarrow\"] = {0x1000, 1},
[\"narrow\"] = {0x2000, 2},
[\"wide\"] = {0x4000, 4},
[\"verywide\"] = {0x8000, 5}
}
}
tuningMenu = {
[1] = {
[\"categoryName\"] = \"Teljesítmény\",
[\"subMenu\"] = {
[1] = {
[\"categoryName\"] = \"Motor\",
[\"upgradeData\"] = \"engine\",
[\"cameraSettings\"] = {\"bonnet_dummy\", 110, 15, 6, true},
[\"handlingFlags\"] = {{\"engineAcceleration\", 0.6}, {\"maxVelocity\", 9.5}, {\"dragCoeff\", -0.05}},
[\"subMenu\"] = {
[1] = {[\"categoryName\"] = \"Gyári csomag\", [\"tuningPrice\"] = 0, [\"priceIgMoney\"] = true},
[2] = {[\"categoryName\"] = \"Utcai csomag\", [\"tuningPrice\"] = 150000 , [\"priceIgMoney\"] = true},
[3] = {[\"categoryName\"] = \"Profi csomag\", [\"tuningPrice\"] = 350000 , [\"priceIgMoney\"] = true},
[4] = {[\"categoryName\"] = \"Verseny csomag\", [\"tuningPrice\"] = 500000 , [\"priceIgMoney\"] = true},
[5] = {[\"categoryName\"] = \"Venom csomag\", [\"tuningPrice\"] = 900 , [\"priceIgMoney\"] = false}
}
},
[2] = {
[\"categoryName\"] = \"Turbó\",
[\"upgradeData\"] = \"turbo\",
[\"cameraSettings\"] = {\"bonnet_dummy\", 110, 15, 6, true},
[\"handlingFlags\"] = {{\"engineAcceleration\", 0.6}},
[\"subMenu\"] = {
[1] = {[\"categoryName\"] = \"Gyári csomag\", [\"tuningPrice\"] = 0, [\"priceIgMoney\"] = true},
[2] = {[\"categoryName\"] = \"Utcai csomag\", [\"tuningPrice\"] = 150000, [\"priceIgMoney\"] = true},
[3] = {[\"categoryName\"] = \"Profi csomag\", [\"tuningPrice\"] = 350000, [\"priceIgMoney\"] = true},
[4] = {[\"categoryName\"] = \"Verseny csomag\", [\"tuningPrice\"] = 500000, [\"priceIgMoney\"] = true},
[5] = {[\"categoryName\"] = \"Venom csomag\", [\"tuningPrice\"] = 900, [\"priceIgMoney\"] = false},
[6] = {[\"categoryName\"] = \"Supercharger csomag\", [\"tuningPrice\"] = 1400, [\"priceIgMoney\"] = false}
}
},
[3] = {
[\"categoryName\"] = \"Váltó\",
[\"upgradeData\"] = \"gearbox\",
[\"handlingFlags\"] = {{\"maxVelocity\", 6}},
[\"subMenu\"] = {
[1] = {[\"categoryName\"] = \"Gyári csomag\", [\"tuningPrice\"] = 0, [\"priceIgMoney\"] = true},
[2] = {[\"categoryName\"] = \"Utcai csomag\", [\"tuningPrice\"] = 150000, [\"priceIgMoney\"] = true},
[3] = {[\"categoryName\"] = \"Profi csomag\", [\"tuningPrice\"] = 350000, [\"priceIgMoney\"] = true},
[4] = {[\"categoryName\"] = \"Verseny csomag\", [\"tuningPrice\"] = 500000, [\"priceIgMoney\"] = true},
[5] = {[\"categoryName\"] = \"Venom csomag\", [\"tuningPrice\"] = 900, [\"priceIgMoney\"] = false}
}
},
[4] = {
[\"categoryName\"] = \"ECU\",
[\"upgradeData\"] = \"ecu\",
[\"handlingFlags\"] = {{\"dragCoeff\", -0.2}},
[\"subMenu\"] = {
[1] = {[\"categoryName\"] = \"Gyári csomag\", [\"tuningPrice\"] = 0, [\"priceIgMoney\"] = true},
[2] = {[\"categoryName\"] = \"Utcai csomag\", [\"tuningPrice\"] = 150000, [\"priceIgMoney\"] = true},
[3] = {[\"categoryName\"] = \"Profi csomag\", [\"tuningPrice\"] = 350000, [\"priceIgMoney\"] = true},
[4] = {[\"categoryName\"] = \"Verseny csomag\", [\"tuningPrice\"] = 500000, [\"priceIgMoney\"] = true},
[5] = {[\"categoryName\"] = \"Venom csomag\", [\"tuningPrice\"] = 900, [\"priceIgMoney\"] = false}
}
},
[5] = {
[\"categoryName\"] = \"Gumik\",
[\"upgradeData\"] = \"tires\",
[\"cameraSettings\"] = {\"wheel_rb_dummy\", 60, 10, 4},
[\"handlingFlags\"] = {{\"tractionMultiplier\", 0.05}, {\"tractionLoss\", 0.02}},
[\"subMenu\"] = {
[1] = {[\"categoryName\"] = \"Gyári csomag\", [\"tuningPrice\"] = 0, [\"priceIgMoney\"] = true},
[2] = {[\"categoryName\"] = \"Utcai csomag\", [\"tuningPrice\"] = 150000, [\"priceIgMoney\"] = true},
[3] = {[\"categoryName\"] = \"Profi csomag\", [\"tuningPrice\"] = 350000, [\"priceIgMoney\"] = true},
[4] = {[\"categoryName\"] = \"Verseny csomag\", [\"tuningPrice\"] = 500000, [\"priceIgMoney\"] = true},
[5] = {[\"categoryName\"] = \"Venom csomag\", [\"tuningPrice\"] = 900, [\"priceIgMoney\"] = false}
}
},
[6] = {
[\"categoryName\"] = \"Fékek\",
[\"upgradeData\"] = \"brakes\",
[\"handlingFlags\"] = {{\"brakeDeceleration\", 0.02}, {\"brakeBias\", 0.08}},
[\"cameraSettings\"] = {\"wheel_rf_dummy\", 35, 5, 2, true},
[\"subMenu\"] = {
[1] = {[\"categoryName\"] = \"Gyári csomag\", [\"tuningPrice\"] = 0, [\"priceIgMoney\"] = true},
[2] = {[\"categoryName\"] = \"Utcai csomag\", [\"tuningPrice\"] = 150000, [\"priceIgMoney\"] = true},
[3] = {[\"categoryName\"] = \"Profi csomag\", [\"tuningPrice\"] = 350000, [\"priceIgMoney\"] = true},
[4] = {[\"categoryName\"] = \"Verseny csomag\", [\"tuningPrice\"] = 500000, [\"priceIgMoney\"] = true},
[5] = {[\"categoryName\"] = \"Venom csomag\", [\"tuningPrice\"] = 900, [\"priceIgMoney\"] = false}
}
}
}
},
Idézetet írta: tobi12 date=1454353144\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"59372\" data-ipsquote-contentclass=\"forums_TopicGond az ,hogy nem jön elő a gui!Ez lenne a problémája :D
[/quote]
de miért nem?
Dupla hozzászólás automatikusan összefûzve. ( 2016. február 03. - 14:18:20 )
????
Idézetet írta: Cα℘℘ჷƴ date=1454350622\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"59372\" data-ipsquote-contentclass=\"forums_Topic
Elfelejtettem xdddddddddd . EDITELVE!
xdddddddddddddddddddddddd
írd le mi a baj
elején
[/quote]
És hol?
[/quote]
Idézetet írta: Pedró date=1454346570\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"59372\" data-ipsquote-contentclass=\"forums_TopicxddddddddddddddddddddddddElfelejtettem xdddddddddd . EDITELVE!
írd le mi a baj
addEventHandler(\"onPlayerJoin\" , getRootElement(),
function
outputChatBox(\"Welcome To The Restory RP!\", source)
end
)
A gond az ,hogy a gui nem jön elő .
A baj az lenne ,hogy a gui nem jön elő csak a köszöntő üzenet és utána nem csinál semmit!
addEventHandler(\"onPlayerQuit\"(),
function (quitType)
local account = getPlayerAccount(source)
if account and not isGuestAccount(account) then
setAccountData(account,\"money\",getPlayerMoney(source))
logOut(source)
end
end
)
addEvent(\"checkAccount\",true)
addEventHandler(\"checkAccount\", root,
function ()
local account = getAccount(getPlayerName(client))
if account then
triggerClientEvent(client, showLogin, client)
else
triggerClientEvent(client, showRegister, client)
end
end
)
addEvent(\"submitRegister\", true)
addEventHandler(\"submitRegister\", root,
function (password)
local accountAdded = getAccount(getPlayerName(client),password)
if account == false then
local accountAdded = addAccount(getPlayerName(client),password)
if accountAdded then
outputChatBox(\"Thanks For Register!\",client)
triggerClientEvent(client, \"showLogin\",client)
else
outputChatBox(\"Hiba! Keresd fel a tulajt TS-en vagy FACEBOOK-on. Kód: 03\",client)
end
else
outputChatBox(\"You have already registered!\",client)
end
end
)
addEvent(\"submitLogin\",true)
addEventHandler(\"submitLogin\",root,
function(password)
local account = getAccount(getPlayerName(client),password)
if account then
if logIn(client , account , password) == false then
outputChatBox(\"You have already logged in!\",client)
end
else
outputChatBox(client,\"Wrong password\")
end
end
)
addEventHandler(\"onClienResourceStart\", getResourceRootElement(),
function ()
triggerServerEvent(\"checkAccount\", getResourceRootElement())
end
)
addEvent(\"showRegister\", true)
addEventHandler(\"showRegister\", getRootElement(),
function
createRegisterWindow()
if(wdwRegister ~= nil) then
guiSetVisible(wdwRegister, true)
else
outputChatBox(\"Hiba! Keresd fel a tulajt Facebook-on vagy TS-en!\")
end
showcursor(true)
guiSetInputEnabled(true)
end
)
function clientSubmitRegister(button,state)
if button == \"left\" and state == \"up\" then
local password == guiGetText(edtPass)
if password then
triggerServerEvent(\"sumbitRegister\", getRootElement(), password)
guiSetInputEnabled(false)
guiSetVisible(wdwRegister , false)
showcursor(false)
else
outputChatBox(\"Type the password!\")
end
end
end
addEvent(\"showLogin\",true)
addEventhandler(\"showLogin\", getRootElement(),
function()
createLoginWindow()
if (wdwLogin ~= nil) then
guiSetVisible(wdwLogin, true)
else
outputChatBox(\"Hiba! Keresd fel a tulajt Facebook-on vagy TS-en!\")
end
showCursor(true)
guiSetInputEnabled(true)
end
)
function clientSubmitLogin(button,state)
if button == \"left\" and state == \"up\" then
local password == guiGetText(edtPass)
if password then
triggerServerEvent(\"sumbitLogin\", getRootElement() , password)
guiSetInputEnabled(false)
guiSetVisible(wdwLogin , false)
showcursor(false)
else
outputChatBox(\"Type the password!\")
end
end
end
function createRegisterWindow()
local X = 0.375
local Y = 0.375
local Width = 0.20
local Heigth = 0.15
wdwRegister = guiCreateWindow(X, Y, Width, Heigth \"Registration\", true)
X = 0.0825
Y = 0.2
Width = 0.25
Heigth = 0.25
guiCreateLabel(X, Y, Width, Heigth \"Password\" , true , wdwRegister)
X = 0.415
Y = 0.2
Width = 0.5
Heigth = 0.15
edtPass = guiCreateEdit(X, Y, Width, Heigth \"\", true, wdwRegister)
guiEditSetMaxLenght(edtPass, 50)
X = 0.415
Y = 0.7
Width = 0.25
Heigth = 0.20
btnRegister = guicreateButton(X, Y, Width, Heigth \"Register\", true , wdwRegister)
guiSetVisible(wdwRegister , false)
addEventHandler(\"onClientGuiClick\", btnRegister, clientSubmitRegister, false)
end
function createLoginWindow()
local X = 0.375
local Y = 0.375
local Width = 0.20
local Heigth = 0.15
wdwLogin = guiCreateWindow(X, Y, Width, Heigth \"Login\", true)
X = 0.0825
Y = 0.2
Width = 0.25
Heigth = 0.25
guiCreateLabel(X, Y, Width, Heigth \"Password\", true, wdwLogin)
X = 0.415
Y = 0.2
Width = 0.5
Heigth = 0.15
edtPass = guiCreateEdit(X, Y, Width, Heigth \"\", true, wdwLogin)
guiEditSetMaxLenght(edtPass, 50)
X = 0.415
Y = 0.7
Width = 0.25
Heigth = 0.20
btnLogin = guicreateButton(X, Y, Width, Heigth \"Login\", true, wdwLogin)
guiSetVisible(wdwLogin , false)
addEventHandler(\"onClientGuiClick\", btnLogin, clientSubmitLogin, false)
end
addEventHandler(\"onPlayerJoin\" , getRootElement(),
function
outputChatBox(\"Welcome To The Restory RP!\", source)
end
)
addEventHandler(\"onPlayerQuit\"(),
function (quitType)
local account = getPlayerAccount(source)
if account and not isGuestAccount(account) then
setAccountData(account,\"money\",getPlayerMoney(source))
logOut(source)
end
end
)
addEvent(\"checkAccount\",true)
addEventHandler(\"checkAccount\", root,
function ()
local account = getAccount(getPlayerName(client))
if account then
triggerClientEvent(client, showLogin, client)
else
triggerClientEvent(client, showRegister, client)
end
end
)
addEvent(\"submitRegister\", true)
addEventHandler(\"submitRegister\", root,
function (password)
local accountAdded = getAccount(getPlayerName(client),password)
if account == false then
local accountAdded = addAccount(getPlayerName(client),password)
if accountAdded then
outputChatBox(\"Thanks For Register!\",client)
triggerClientEvent(client, \"showLogin\",client)
else
outputChatBox(\"Hiba! Keresd fel a tulajt TS-en vagy FACEBOOK-on. Kód: 03\",client)
end
else
outputChatBox(\"You have already registered!\",client)
end
end
)
addEvent(\"submitLogin\",true)
addEventHandler(\"submitLogin\",root,
function(password)
local account = getAccount(getPlayerName(client),password)
if account then
if logIn(client , account , password) == false then
outputChatBox(\"You have already logged in!\",client)
end
else
outputChatBox(client,\"Wrong password\")
end
end
)
addEventHandler(\"onClienResourceStart\", getResourceRootElement(),
function ()
triggerServerEvent(\"checkAccount\", getResourceRootElement())
end
)
addEvent(\"showRegister\", true)
addEventHandler(\"showRegister\", getRootElement(),
function
createRegisterWindow()
if(wdwRegister ~= nil) then
guiSetVisible(wdwRegister, true)
else
outputChatBox(\"Hiba! Keresd fel a tulajt Facebook-on vagy TS-en!\")
end
showcursor(true)
guiSetInputEnabled(true)
end
)
function clientSubmitRegister(button,state)
if button == \"left\" and state == \"up\" then
local password == guiGetText(edtPass)
if password then
triggerServerEvent(\"sumbitRegister\", getRootElement(), password)
guiSetInputEnabled(false)
guiSetVisible(wdwRegister , false)
showcursor(false)
else
outputChatBox(\"Type the password!\")
end
end
end
addEvent(\"showLogin\",true)
addEventhandler(\"showLogin\", getRootElement(),
function()
createLoginWindow()
if (wdwLogin ~= nil) then
guiSetVisible(wdwLogin, true)
else
outputChatBox(\"Hiba! Keresd fel a tulajt Facebook-on vagy TS-en!\")
end
showCursor(true)
guiSetInputEnabled(true)
end
)
function clientSubmitLogin(button,state)
if button == \"left\" and state == \"up\" then
local password == guiGetText(edtPass)
if password then
triggerServerEvent(\"sumbitLogin\", getRootElement() , password)
guiSetInputEnabled(false)
guiSetVisible(wdwLogin , false)
showcursor(false)
else
outputChatBox(\"Type the password!\")
end
end
end
function createRegisterWindow()
local X = 0.375
local Y = 0.375
local Width = 0.20
local Heigth = 0.15
wdwRegister = guiCreateWindow(X, Y, Width, Heigth \"Registration\", true)
X = 0.0825
Y = 0.2
Width = 0.25
Heigth = 0.25
guiCreateLabel(X, Y, Width, Heigth \"Password\" , true , wdwRegister)
X = 0.415
Y = 0.2
Width = 0.5
Heigth = 0.15
edtPass = guiCreateEdit(X, Y, Width, Heigth \"\", true, wdwRegister)
guiEditSetMaxLenght(edtPass, 50)
X = 0.415
Y = 0.7
Width = 0.25
Heigth = 0.20
btnRegister = guicreateButton(X, Y, Width, Heigth \"Register\", true , wdwRegister)
guiSetVisible(wdwRegister , false)
addEventHandler(\"onClientGuiClick\", btnRegister, clientSubmitRegister, false)
end
function createLoginWindow()
local X = 0.375
local Y = 0.375
local Width = 0.20
local Heigth = 0.15
wdwLogin = guiCreateWindow(X, Y, Width, Heigth \"Login\", true)
X = 0.0825
Y = 0.2
Width = 0.25
Heigth = 0.25
guiCreateLabel(X, Y, Width, Heigth \"Password\", true, wdwLogin)
X = 0.415
Y = 0.2
Width = 0.5
Heigth = 0.15
edtPass = guiCreateEdit(X, Y, Width, Heigth \"\", true, wdwLogin)
guiEditSetMaxLenght(edtPass, 50)
X = 0.415
Y = 0.7
Width = 0.25
Heigth = 0.20
btnLogin = guicreateButton(X, Y, Width, Heigth \"Login\", true, wdwLogin)
guiSetVisible(wdwLogin , false)
addEventHandler(\"onClientGuiClick\", btnLogin, clientSubmitLogin, false)
end
Az oldal 0.055 másodperc alatt készült el 18 lekéréssel.