NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

--Globals
local lUsername, tUsername, lPassword, tPassword, chkRememberLogin, bLogin, bRegister, defaultingTimer = nil
local newsTitle, newsText, newsAuthor
local loginTitleText = "California Roleplay"
--Settings block for c_characters.lua/line 87
endCam = {
[3] = {591.1669921875, -1827.3310546875, 10.137532234191, 570.09375, -1849.947265625, 4.968677997},
[1] = {2511.8854980469, -1679.1414794922, 17.823833465576, 2425.4426269531, -1641.1086425781, -15.056860923767},
[2] = {1553.4459228516, -1365.8366699219, 332.95718383789, 1495.1271972656, -1295.9808349609, 291.49520874023},
[0] = {-2233.2431640625, -1705.6872558594, 484.6149597168, -2268.3579101563, -1797.0213623047, 463.99838256836},
}
startCam = {
[3] = {1309.4599609375, -2123.7509765625, 106.98361206055, 1309.53515625, -1818.5615234375, 76.211189270 },
[1] = {2637.0703125, -1719.1510009766, 90.978698730469, 2636.2329101563, -1718.8670654297, 90.511764526367},
[2] = {1862.1447753906, -1743.5769042969, 616.80279541016, 1807.4505615234, -1676.6506347656, 566.50939941406},
[0] = {-1553.6662597656, -1547.2840576172, 76.449432373047, -1653.0958251953, -1555.7768554688, 69.997413635254},
}
originalStartCam = {
[3] = {1309.4599609375, -2123.7509765625, 106.98361206055, 1309.53515625, -1818.5615234375, 76.211189270 },
[1] = {2637.0703125, -1719.1510009766, 90.978698730469, 2636.2329101563, -1718.8670654297, 90.511764526367},
[2] = {1862.1447753906, -1743.5769042969, 616.80279541016, 1807.4505615234, -1676.6506347656, 566.50939941406},
[0] = {-1553.6662597656, -1547.2840576172, 76.449432373047, -1653.0958251953, -1555.7768554688, 69.997413635254},
}
pedPos = {
[3] = {581.5712890625, -1835.89453125, 5.6328125, 306.9929},
[1] = {2502.59765625, -1679.40234375, 13.375785827637, 256.50445556641},
[2] = {1549.615234375, -1362.326171875, 329.45889282227, 202.84092712402},
[0] = {-2236.76171875, -1710.3046875, 480.88693237305, 310.16250610352},
}
globalspeed = 15 --Higher value = slower
speed = {}
doneCam = {
[0] = {false, false, false, false, false, false},
[1] = {false, false, false, false, false, false},
[2] = {false, false, false, false, false, false},
[3] = {false, false, false, false, false, false},
}

function getSelectionScreenID()
local hasThisPerk, thisPerkValue = exports.donators:hasPlayerPerk(localPlayer, 24) --Groove St
if hasThisPerk and tonumber(thisPerkValue) == 1 then
return 1
end

hasThisPerk, thisPerkValue = exports.donators:hasPlayerPerk(localPlayer, 25) --Star Tower
if hasThisPerk and tonumber(thisPerkValue) == 1 then
return 2
end

hasThisPerk, thisPerkValue = exports.donators:hasPlayerPerk(localPlayer, 26) --Mount Chiliad
if hasThisPerk and tonumber(thisPerkValue) == 1 then
return 3
end

return 0
end

--------------------------------------------


addEventHandler("accounts:login:request", getRootElement(),
function ()
setElementDimension ( getLocalPlayer(), 0 )
setElementInterior( getLocalPlayer(), 0 )
setCameraMatrix(-262, -1143, 24, -97, -1167, 2)
setElementPosition( getLocalPlayer(), 1480, -1688, 13 )
guiSetInputEnabled(true)
clearChat()
triggerServerEvent("onJoin", getLocalPlayer())
--LoginScreen_openLoginScreen()
end
);

--[[ LoginScreen_openLoginScreen( ) - Open the login screen ]]--
local wLogin, lUsername, tUsername, lPassword, tPassword, chkRememberLogin, bLogin, bRegister--[[, updateTimer]] = nil
function LoginScreen_openLoginScreen(title)
local resource = getResourceFromName("inceptionroleplay-mb-ekrani")
if resource then
if getResourceState(resource) == "running" then
exports["inceptionroleplay-mb-ekrani"]:showLoadingScreen(false)
end
end
open_log_reg_pannel()
--[[
guiSetInputEnabled(true)
showCursor(true)
if not title then
local width, height = guiGetScreenSize()
local logoW, logoH = 372, 90
local logoPosX = width/2 - 186
local logoPosY = height/2- 140
iLogo = guiCreateStaticImage(logoPosX, logoPosY, logoW, logoH, "img/OGLogo.png", false)
lUsername = guiCreateLabel(0.4110, 0.4800, 1, 0.5000, "Username", true)
guiSetFont(lUsername, "default-bold-small")
tUsername = guiCreateEdit(0.3680, 0.5000, 0.1300, 0.0350, "Username", true)
guiSetFont(tUsername, "default-bold-small")
guiEditSetMaxLength(tUsername, 32)
addEventHandler("onClientGUIAccepted", tUsername, checkCredentials, false)
lPassword = guiCreateLabel(0.5460, 0.4800, 1, 0.5000, "Password", true)
guiSetFont(lPassword, "default-bold-small")
tPassword = guiCreateEdit(0.5000, 0.5000, 0.1300, 0.0350, "Password", true)
guiSetFont(tPassword, "default-bold-small")
guiEditSetMasked(tPassword, true)
guiEditSetMaxLength(tPassword, 64)
addEventHandler("onClientGUIAccepted", tPassword, checkCredentials, false)
chkRememberLogin = guiCreateCheckBox(0.4610, 0.5650, 0.1300, 0.0350, "Remember Me", false, true)
guiSetFont(chkRememberLogin, "default-bold-small")
bLogin = guiCreateButton(0.4330, 0.5400, 0.0650, 0.0300, "Login", true)
guiSetFont(bLogin, "default-bold-small")
addEventHandler("onClientGUIClick", bLogin, checkCredentials, false)
bRegister = guiCreateButton(0.5000, 0.5400, 0.0650, 0.0300, "Register", true)
guiSetFont(bRegister, "default-bold-small")
addEventHandler("onClientGUIClick", bRegister, LoginScreen_Register, false)
guiSetText(tUsername, tostring( loadSavedData("username", "") ))
local tHash = tostring( loadSavedData("hashcode", "") )
guiSetText(tPassword, tHash)
if #tHash > 1 then
guiCheckBoxSetSelected(chkRememberLogin, true)
end
newsTitle = getElementData(getResourceRootElement(), "news:title")
newsText = getElementData(getResourceRootElement(), "news:text")
newsAuthor = getElementData(getResourceRootElement(), "news:sub")
addEventHandler("onClientRender", getRootElement(), showLoginTitle)
triggerEvent("accounts:settings:loadGraphicSettings", getLocalPlayer())
else
loginTitleText = title
addEventHandler("onClientRender", getRootElement(), showLoginTitle)
end
]]
end
addEvent("beginLogin", true)
addEventHandler("beginLogin", getRootElement(), LoginScreen_openLoginScreen)

function showLoginTitle()
--[[
local screenX, screenY = guiGetScreenSize()
local alphaAction = 3
local alphaStep = 50
local alphaAction = 3
local alphaStep = 50
local sWidth,sHeight = guiGetScreenSize()
if loginTitleText == "Banned." then
dxDrawText(loginTitleText,(700/1600)*sWidth, (350/900)*sHeight, (900/1600)*sWidth, (450/900)*sHeight, tocolor(255,0,0,255), (sWidth/1600)*2, "default-bold","center","center",false,false,false)
else
dxDrawText(loginTitleText,(700/1600)*sWidth, (350/900)*sHeight, (900/1600)*sWidth, (450/900)*sHeight, tocolor(255,255,255,255), (sWidth/1600)*2, "default-bold","center","center",false,false,false)
end
alphaStep = alphaStep + alphaAction
if (alphaStep > 200) or (alphaStep < 50) then
alphaAction = alphaAction - alphaAction - alphaAction
end
dxDrawRectangle( (10/1600)*sWidth, (17/900)*sHeight, (400/1600)*sWidth, (600/900)*sHeight, tocolor(0, 0, 0, 150))
dxDrawText( newsTitle, (35/1600)*sWidth, (30/900)*sHeight, (375/1600)*sWidth, (550/900)*sHeight, tocolor ( 255, 255, 255, 255 ), 1.5, "default-bold" )
dxDrawText( " " .. newsAuthor, (80/1600)*sWidth, (60/900)*sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 1.2, "default-bold", "left", "top", true, false )
dxDrawText( newsText, (35/1600)*sWidth, (92/900)*sHeight, (375/1600)*sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold", "left", "top", true, true )
]]
end

function LoginScreen_Register()
local username = guiGetText(tUsername)
local password = guiGetText(tPassword)
if (string.len(username)<3) then
LoginScreen_showWarningMessage( "Kullanıcı adınız 3 karakter'Den fazla olmalıdır!" )
elseif (string.find(username, ";", 0)) or (string.find(username, "'", 0)) or (string.find(username, "@", 0)) or (string.find(username, ",", 0)) or (string.find(username, " ", 0)) then
LoginScreen_showWarningMessage("Kullanıcı adınız Kullanılamıyor ;,@.' Boşluk Koyma!")
elseif (string.len(password)<6) then
LoginScreen_showWarningMessage("Şifreniz Çok Kısa. n 6 Karakterden Fazla Olmalıdır.", 255, 0, 0)
elseif (string.len(password)>=30) then
LoginScreen_showWarningMessage("Şifreniz Çok Uzun. n 30 Karakterden Az Olmalıdır.", 255, 0, 0)
elseif (string.find(password, ";", 0)) or (string.find(password, "'", 0)) or (string.find(password, "@", 0)) or (string.find(password, ",", 0)) then
LoginScreen_showWarningMessage("Şifreniz Kullanılamıyor ;,@'.", 255, 0, 0)
else
showChat(true)
triggerServerEvent("accounts:register:attempt", getLocalPlayer(), username, password)
end
end

function LoginScreen_RefreshIMG()
currentslide = currentslide + 1
if currentslide > totalslides then
currentslide = 1
end
end

--[[ LoginScreen_closeLoginScreen() - Close the loginscreen ]]
function LoginScreen_closeLoginScreen()
removeEventHandler( "onClientRender", getRootElement(), showLoginTitle )
end

--[[ checkCredentials() - Used to validate and send the contents of the login screen ]]--
function checkCredentials()
local username = guiGetText(tUsername)
local password = guiGetText(tPassword)
guiSetText(tPassword, "")
--appendSavedData("hashcode", "")
if (string.len(username)<3) then
outputChatBox("Adınız çok kısa. 3 veya daha fazla karakter girmelisiniz.", 255, 0, 0)
else
local saveInfo = guiCheckBoxGetSelected(chkRememberLogin)
triggerServerEvent("accounts:login:attempt", getLocalPlayer(), username, password, saveInfo)

if (saveInfo) then
--appendSavedData("username", tostring(username))
else
--appendSavedData("username", "")
end
end
end

local warningBox, warningMessage, warningOk = nil
function LoginScreen_showWarningMessage( message )

if (isElement(warningBox)) then
destroyElement(warningBox)
end

local x, y = guiGetScreenSize()
warningBox = guiCreateWindow( x*.5-150, y*.5-65, 300, 120, "Dikkat!", false )
guiWindowSetSizable( warningBox, false )
warningMessage = guiCreateLabel( 40, 30, 220, 60, message, false, warningBox )
guiLabelSetHorizontalAlign( warningMessage, "center", true )
guiLabelSetVerticalAlign( warningMessage, "center" )
warningOk = guiCreateButton( 130, 90, 70, 20, "Tamam", false, warningBox )
addEventHandler( "onClientGUIClick", warningOk, function() destroyElement(warningBox) end )
guiBringToFront( warningBox )
end
addEventHandler("accounts:error:window", getRootElement(), LoginScreen_showWarningMessage)

function defaultLoginText()
loginTitleText = "Inception Roleplay"
end

addEventHandler("accounts:login:attempt", getRootElement(),
function (statusCode, additionalData)

if (statusCode == 0) then
LoginScreen_closeLoginScreen()

if (isElement(warningBox)) then
destroyElement(warningBox)
end

-- Succesful login
--[[
for _, theValue in ipairs(additionalData) do
setElementData(getLocalPlayer(), theValue[1], theValue[2], false)
end
]]

local newAccountHash = getElementData(getLocalPlayer(), "account:newAccountHash")
--appendSavedData("hashcode", newAccountHash or "")

local characterList = getElementData(getLocalPlayer(), "account:characters")

if #characterList == 0 then
newCharacter_init()
else
Characters_showSelection(characterList)
fadeCamera ( false, 0, 0,0,0 )
end
elseif (statusCode > 0) and (statusCode < 5) then
LoginScreen_showWarningMessage( additionalData )
elseif (statusCode == 5) then
LoginScreen_showWarningMessage( additionalData )
-- TODO: show make app screen?
end
end
)

local Window = {}
local Button = {}
local Label = {}
local Edit = {}

function showPasswordUpdate()
showCursor(true)
Window[1] = guiCreateWindow(0.3562,0.3997,0.2891,0.2383,"GÜVENLİK DİKKAT:",true)
guiSetInputEnabled ( true)
Label[1] = guiCreateLabel(0.0378,0.153,0.9324,0.2404,"Hesabınızla potansiyel bir güvenlik açığı fark ettik.nHerhangi bir veri kaybını önlemek içinn Aşağıdaki kutuya yeni bir parola girmenizi tavsiye ederiz!",true,Window[1])
guiLabelSetColor(Label[1],0,200,0)
guiLabelSetHorizontalAlign(Label[1],"center",false)
Edit[1] = guiCreateEdit(0.4243,0.4481,0.5351,0.1475,"",true,Window[1])
guiEditSetMasked(Edit[1], true)
Edit[2] = guiCreateEdit(0.4243,0.6175,0.5351,0.1475,"",true,Window[1])
guiEditSetMasked(Edit[2], true)
Label[2] = guiCreateLabel(0.1649,0.4754,0.2432,0.1038,"Yeni Şifre:",true,Window[1])
Label[3] = guiCreateLabel(0.1216,0.6284,0.2784,0.1038,"Tekrar Şifre:",true,Window[1])
Button[1] = guiCreateButton(0.427,0.8087,0.527,0.1257,"Eski Şifreniz",true,Window[1])
addEventHandler("onClientGUIClick", Button[1], function()
triggerServerEvent("account:forceChange:validate", getLocalPlayer(), guiGetText(Edit[1]), guiGetText(Edit[2]))
end)
end
addEvent("account:forceChangePassword:GUI", true)
addEventHandler("account:forceChangePassword:GUI", getRootElement(), showPasswordUpdate)

function closePasswordUpdate()
destroyElement(Window[1])
showCursor(false)
guiSetInputEnabled ( false)
end
addEvent("account:forceChange:GUIClose", true)
addEventHandler("account:forceChange:GUIClose", getRootElement(), closePasswordUpdate)
--[[
local screenW, screenH = guiGetScreenSize()
local scaleW, scaleH = (screenW/1366), (screenH/768)
local sx,sy = guiGetScreenSize()
local boyutW,boyutH = screenW * 0.2243, screenH * 0.1667
local bx,by = screenW * 0.0868, screenH * 0.5344
local redirectButton = false

function showLogoButton()

-- gecici
--showCursor(true)
--setElementData(localPlayer,"account:giris",1)


-- Buton
redirectGUI = guiCreateButton(bx,by,boyutW,boyutH,"deneme",false)
guiSetVisible(redirectGUI,false)
guiSetAlpha(redirectGUI,0)

redirectButton = true
end
addEventHandler("onClientResourceStart", getRootElement(), showLogoButton)

function showLogoRender()
if getElementData(getLocalPlayer(), "account:giris") == 1 then
-- resim kodu
dxDrawImage(bx,by,boyutW, boyutH, ":account/login-panel/trrp.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
guiSetVisible(redirectGUI,true)
else
if redirectButton == true then
guiSetVisible(redirectGUI,false)
redirectButton = false
end
end
end
addEventHandler("onClientRender",getRootElement(),showLogoRender)

function redirectButtonClick()
if source == redirectGUI then
if getElementData(getLocalPlayer(), "account:giris") == 1 then
triggerServerEvent("TRPyonlendir", getLocalPlayer())
end
end
end
addEventHandler ( "onClientGUIClick",getRootElement(), redirectButtonClick)

--------------------------- ŞİFRE SIFIRLAMA ------------------------------
local screenW, screenH = guiGetScreenSize()
local scaleW, scaleH = (screenW/1366), (screenH/768)
local sx,sy = guiGetScreenSize()
local boyutW,boyutH = screenW * 0.2368, screenH * 0.0800
local bx,by = screenW * 0.3818, screenH * 0.8300
local redirectButton2 = false

--dxDrawImage(screenW * 0.3812, screenH * 0.8300, screenW * 0.2368, screenH * 0.0700, ":account/login-panel/sifremiunuttum.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)


function showLogoButton2()

-- gecici
--showCursor(true)
--setElementData(localPlayer,"account:giris",1)


-- Buton
redirectGUI2 = guiCreateButton(bx,by,boyutW,boyutH,"deneme",false)
guiSetVisible(redirectGUI2,false)
guiSetAlpha(redirectGUI2,0)

redirectButton2 = true
end
addEventHandler("onClientResourceStart", getRootElement(), showLogoButton2)

function showLogoRender2()
if getElementData(getLocalPlayer(), "account:giris") == 1 and getElementData(getLocalPlayer(), "account:sifresifirlama") ~= 1 then
-- resim kodu
dxDrawImage(bx,by,boyutW, boyutH, ":account/login-panel/sifremiunuttum.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
guiSetVisible(redirectGUI2,true)
elseif getElementData(getLocalPlayer(), "account:sifresifirlama") ~= 0 then

guiSetVisible(redirectGUI2,false)
else
if redirectButton2 == true then
guiSetVisible(redirectGUI2,false)
redirectButton2 = false
end
end
end
addEventHandler("onClientRender",getRootElement(),showLogoRender2)

function redirectButtonClick2()
if source == redirectGUI2 then
--if getElementData(getLocalPlayer(), "account:giris") == 1 then
executeCommandHandler("şifresıfırla")
--outputConsole("test")
--end
end
end
addEventHandler ( "onClientGUIClick",getRootElement(), redirectButtonClick2)
]]--
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.