Jump to content

||BuLLeT||

Members
  • Posts

    112
  • Joined

  • Last visited

Everything posted by ||BuLLeT||

  1. oh, i have almost forgot about this, now Class is saving but not teams, idk what happen
  2. if u have, just send me all things like u have, i'll rename pic then, i need it works
  3. u have same server side like me?
  4. it is, maybe cause of resolution?
  5. meta -- Server Header --> "Sathler" type="misc" version="1.1" name="LoginForm" description="Login Form modified by Sathler" />
  6. tnx mega, inace koje scripte za RPG gamemode prodaješ? nemam paypal pa ako hoces mogli bi razmjenu, ja tebi neki script, ti meni...
  7. hey guys i need help with login panel from community, i want add picture "NSRPwallpaper1980x1080-2.png" in it like background for it. LoginForm.lua function PlayerLogin(username,password,checksave) if not (username == "") then if not (password == "") then local account = getAccount ( username, password ) if ( account ~= false ) then logIn(source, account, password) triggerClientEvent (source,"hideLoginWindow",getRootElement()) if checksave == true then triggerClientEvent(source,"saveLoginToXML",getRootElement(),username,password) else triggerClientEvent(source,"resetSaveXML",getRootElement(),username,password) end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Login","Wrong username and/or password!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Login","Please enter your password!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Login","Please enter your username!") end end addEvent("onRequestLogin",true) addEventHandler("onRequestLogin",getRootElement(),PlayerLogin) function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source, "SARPtopChat:addMessage", source,"You have sucessfuly registered! [username: " .. username .. " | Password: " .. password .. "]", 0, 206, 209) else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Error ocurred! Choose a different username/password.") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","An account with this username already exists!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Passwords do not match!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please confirm your password!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please enter a password!") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please enter a username you would like to register!") end end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer) LoginForm_Client.lua wdwLogin_Pannel = {} tabPannel_Main = {} tab_Login = {} tab_Register = {} --Settings blackLoginScreen = true --True/false Black screen, while player login... blackScreenTime = 5 --Time to complete disappearance of the black screen in seconds. GuestEnable = false --Can a Player play as Guest, or no. [true/false] EnableMTAControlsOnLogin = false --Set false to not open the chat when you press "t" on fields, for example. [true/false] function open_log_reg_pannel() if not(isElement(wdwLogin_Pannel)) then if blackLoginScreen == true then fadeCamera(false,0,0,0,0) end local sWidth,sHeight = guiGetScreenSize() -- The variables local Width,Height = 350,284 --Main Window sizes local X = (sWidth/2) - (Width/2) --Main Window horizontal position local Y = (sHeight/2) - (Height/2) --Main Window vertical position toggleAllControls(EnableMTAControlsOnLogin) wdwLogin_Pannel = guiCreateWindow(X,Y,Width,Height,"NS:RPG Login System.",false) guiWindowSetSizable(wdwLogin_Pannel,false) tabPannel_Main = guiCreateTabPanel(9,50,350,251,false,wdwLogin_Pannel) tab_Login = guiCreateTab("Login",tabPannel_Main) lbl_Login = guiCreateLabel(57,30,42,19,"Login:",false,tab_Login) guiLabelSetVerticalAlign(lbl_Login,"center") guiLabelSetHorizontalAlign(lbl_Login,"right",false) guiSetFont(lbl_Login,"default-bold-small") edit_Login = guiCreateEdit(110,30,130,23,"",false,tab_Login) --Поле ввода логина edit_password = guiCreateEdit(110,58,130,23,"",false,tab_Login) --Поле ввода пароля guiEditSetMaxLength ( edit_Login,25) guiEditSetMaxLength ( edit_password,25) guiEditSetMasked ( edit_password, true ) lbl_Password = guiCreateLabel(3,58,96,19,"Password:",false,tab_Login) guiLabelSetVerticalAlign(lbl_Password,"center") guiLabelSetHorizontalAlign(lbl_Password,"right",false) guiSetFont(lbl_Password,"default-bold-small") --[[lbl_top_info = guiCreateLabel(74,6,244,35,"Enter with your username and password.",false,tab_Login) guiLabelSetColor(lbl_top_info,137,26,26) guiLabelSetVerticalAlign(lbl_top_info,"center") guiLabelSetHorizontalAlign(lbl_top_info,"center",false) guiSetFont(lbl_top_info,"default-bold-small")]] --[[lbl_about_legth = guiCreateLabel(142,42,184,18,"Max Length: 25 symbols",false,tab_Login) guiLabelSetColor(lbl_about_legth,253,255,68) guiLabelSetVerticalAlign(lbl_about_legth,"center") guiLabelSetHorizontalAlign(lbl_about_legth,"center",false)]] checkbox_save = guiCreateCheckBox(165,87,100,20,"(Remember)",false,false,tab_Login) guiSetFont(checkbox_save,"default-small") btn_Login = guiCreateButton(110,140,130,40,"Login",false,tab_Login) guiSetFont(btn_Login,"default-bold-small") login_tab_error_msg = guiCreateLabel(0,112,350,25,"Error_login_tab",false,tab_Login) guiLabelSetColor(login_tab_error_msg,255,0,0) guiLabelSetVerticalAlign(login_tab_error_msg,"center") guiLabelSetHorizontalAlign(login_tab_error_msg,"center",false) guiSetFont(login_tab_error_msg,"default-bold-small") --Guest func if GuestEnable == true then btnGuest = guiCreateButton(29,168,94,32,"Play as Guest",false,tab_Login) guiSetFont(btnGuest,"default-small") guiSetVisible(btnGuest,true) else if isElement(btnGuest) then guiSetVisible(btnGuest,false) end btnGuest = nil end tab_Register = guiCreateTab("Register",tabPannel_Main) lbl_account_name = guiCreateLabel(13,39,119,21,"Account Name:",false,tab_Register) guiLabelSetVerticalAlign(lbl_account_name,"center") guiLabelSetHorizontalAlign(lbl_account_name,"right",false) guiSetFont(lbl_account_name,"default-bold-small") lbl_reg_top_info = guiCreateLabel(80,5,364,31,"Do not use special characters.",false,tab_Register) guiLabelSetColor(lbl_reg_top_info,255,234,55) guiLabelSetVerticalAlign(lbl_reg_top_info,"center") guiLabelSetHorizontalAlign(lbl_reg_top_info,"left",false) edit_account_name = guiCreateEdit(142,40,130,23,"",false,tab_Register) guiEditSetMaxLength ( edit_account_name,25) lbl__reg_tab_password = guiCreateLabel(13,71,119,21,"Password:",false,tab_Register) guiLabelSetVerticalAlign(lbl__reg_tab_password,"center") guiLabelSetHorizontalAlign(lbl__reg_tab_password,"right",false) guiSetFont(lbl__reg_tab_password,"default-bold-small") edit__reg_tab_password = guiCreateEdit(142,71,130,23,"",false,tab_Register) guiEditSetMaxLength ( edit__reg_tab_password,25) edit__reg_tab_Repassword = guiCreateEdit(142,102,130,23,"",false,tab_Register) guiEditSetMaxLength ( edit__reg_tab_Repassword,25) lvl_reg_tab_Repassword = guiCreateLabel(13,102,119,21,"Repeat password:",false,tab_Register) guiLabelSetVerticalAlign(lvl_reg_tab_Repassword,"center") guiLabelSetHorizontalAlign(lvl_reg_tab_Repassword,"right",false) guiSetFont(lvl_reg_tab_Repassword,"default-bold-small") btn_reg_tab_register = guiCreateButton(142,135,130,42,"Register",false,tab_Register) guiSetFont(btn_reg_tab_register,"default-bold-small") reg_tab_error_msg = guiCreateLabel(0,170,350,31,"Error_reg_ttab",false,tab_Register) guiLabelSetColor(reg_tab_error_msg,255,20,0) guiLabelSetVerticalAlign(reg_tab_error_msg,"center") guiLabelSetHorizontalAlign(reg_tab_error_msg,"center",false) guiSetFont(reg_tab_error_msg,"default-bold-small") guiEditSetMasked(edit__reg_tab_password, true) guiEditSetMasked(edit__reg_tab_Repassword, true) guiSetVisible(wdwLogin_Pannel,true) --guiSetInputEnabled(true) showCursor(true) --Изменение надписей: guiSetText(reg_tab_error_msg, "") --Поле ошибки в Reg табе guiSetText(login_tab_error_msg, "") --Поле ошибки в Login табе local username, password = loadLoginFromXML() if not( username == "" or password == "") then guiCheckBoxSetSelected ( checkbox_save, true ) guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) else guiCheckBoxSetSelected ( checkbox_save, false ) guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) end --Эвенты addEventHandler("onClientGUIClick",btn_Login,onClickBtnLogin) addEventHandler("onClientGUIClick",btn_reg_tab_register,onClickBtnRegister) if GuestEnable == true then addEventHandler("onClientGUIClick",btnGuest,onClickGuest) end --else --destroyElement(wdwLogin_Pannel) --guiSetInputEnabled(false) --wdwLogin_Pannel = nil --showCursor(false) end end function start_cl_resource() --При старте open_log_reg_pannel() end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),start_cl_resource) function loadLoginFromXML() --Загрузка логина и пароля из XML local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if usernameNode and passwordNode then return xmlNodeGetValue(usernameNode), xmlNodeGetValue(passwordNode) else return "", "" end xmlUnloadFile ( xml_save_log_File ) end function saveLoginToXML(username, password) --Сохрание логина и пароля в XML local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end if (username ~= "") then local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) if not usernameNode then usernameNode = xmlCreateChild(xml_save_log_File, "username") end xmlNodeSetValue (usernameNode, tostring(username)) end if (password ~= "") then local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if not passwordNode then passwordNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (passwordNode, tostring(password)) end xmlSaveFile(xml_save_log_File) xmlUnloadFile (xml_save_log_File) end addEvent("saveLoginToXML", true) addEventHandler("saveLoginToXML", getRootElement(), saveLoginToXML) function resetSaveXML() --Сохрание логина и пароля в XML local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end if (username ~= "") then local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) if not usernameNode then usernameNode = xmlCreateChild(xml_save_log_File, "username") end end if (password ~= "") then local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if not passwordNode then passwordNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (passwordNode, "") end xmlSaveFile(xml_save_log_File) xmlUnloadFile (xml_save_log_File) end addEvent("resetSaveXML", true) addEventHandler("resetSaveXML", getRootElement(), resetSaveXML) function onClickBtnLogin(button,state) --При нажатии на кнопку Login if(button == "left" and state == "up") then if (source == btn_Login) then username =
  8. yo, i'm interesed about ATM's , can u give me your skype pls so we can talk?
  9. inace mijenja mi se IP stalno, zna tko kako promijenit na static IP? 89.201.216.210
  10. i think noone will give u solution, even castillo, cause its on castillo's MTA marker http://mtamarket.com/
  11. nezz, sad je novo ime: |[NSRP] New Style RolePlay - www.newstylerp.comorany|
  12. i think this is problem as castillo said
  13. can you tell us more? like what is script for?
  14. if u want RPG servers then: SAUR,SAES or WSS
  15. i need getPlayerClass manve, cause i got spawn system, i cant give it here, only in PM if needed but getClassFromName, so i need change team with class but there is no that function
  16. hey, i got problem with pilot job, i want it be locked to pilot class, when player spawn "Pilot" on my spawn system it gets bind like "P" and then he get GUI with planes choose, i want when he choose plane he can go deliver(thats already in script) just need help with GUI binding and locking to Pilot class plane.lua rootElement = getRootElement() local lvairportblip = createBlip(1674, 1447.5, 11, 5) planemarkerlv = createMarker(1674, 1447.5, 9.5, "cylinder", 5, 255, 0, 0, 160) gate1LVmarker = createMarker(1576.5, 1495.30, 13, "cylinder", 18, 0, 155, 255, 30) gate2LVmarker = createMarker(1570.8, 1532.87, 13, "cylinder", 18, 0, 155, 255, 30) gate3LVmarker = createMarker(1602.5, 1546.54, 13, "cylinder", 18, 0, 155, 255, 30) gate4LVmarker = createMarker(1576.7, 1401.46, 13, "cylinder", 18, 0, 155, 255, 30) gate5LVmarker = createMarker(1570.8, 1363.94, 13, "cylinder", 18, 0, 155, 255, 30) gate6LVmarker = createMarker(1601.4, 1350.91, 13, "cylinder", 18, 0, 155, 255, 30) gate1SFmarker = createMarker(-1350.1, -235.77, 16, "cylinder", 18, 0, 155, 255, 30) gate2SFmarker = createMarker(-1298.6, -366.46, 16, "cylinder", 18, 0, 155, 255, 30) gate3SFmarker = createMarker(-1462.2, -157.35, 16, "cylinder", 18, 0, 155, 255, 30) gate4SFmarker = createMarker(-1362.5, -146.57, 16, "cylinder", 18, 0, 155, 255, 30) gate5SFmarker = createMarker(-1257.2, -252.85, 16, "cylinder", 18, 0, 155, 255, 30) gate1LSmarker = createMarker(1569.78, -2433.4, 15, "cylinder", 18, 0, 155, 255, 30) gate2LSmarker = createMarker(1654.20, -2440, 15, "cylinder", 18, 0, 155, 255, 30) gate3LSmarker = createMarker(1884.6, -2388.15, 15, "cylinder", 18, 0, 155, 255, 30) addEvent ("airLVviewGUI", true) function markerHit (hitPlayer, matchingDimension) if (source == planemarkerlv) then triggerClientEvent ("airLVviewGUI", hitPlayer) outputChatBox ("Welcome to Las Venturas Airport!", hitPlayer, 255, 255, 255) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) addEvent ("gateLVviewGUI", true) function markerHitLVgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == gate1LVmarker) or (source == gate2LVmarker) or (source == gate3LVmarker) or (source == gate4LVmarker) or (source == gate5LVmarker) or (source == gate6LVmarker)) and (id == 511 or id == 577 or id == 592) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "LV") then givePlayerMoney (hitPlayer, 3000) outputChatBox ("Welcome to Las Venturas Int. wait while you're unloading", hitPlayer, 255, 255, 0) end triggerClientEvent ("gateLVviewGUI", hitPlayer) setTimer(function() outputChatBox ("You are loaded and ready for departure", hitPlayer, 255, 255, 0) end, 5000,1) elseif ((source == gate1LVmarker) or (source == gate2LVmarker) or (source == gate3LVmarker) or (source == gate4LVmarker) or (source == gate5LVmarker) or (source == gate6LVmarker)) then outputChatBox ("You can't pick up passegers without a plane", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitLVgate) addEvent ("gateSFviewGUI", true) function markerHitSFgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == gate1SFmarker) or (source == gate2SFmarker) or (source == gate3SFmarker) or (source == gate4SFmarker) or (source == gate5SFmarker)) and (id == 511 or id == 577 or id == 592) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "SF") then givePlayerMoney (hitPlayer, 3000) outputChatBox ("Welcome to San Fierro Int. wait while you're unloading", hitPlayer, 255, 255, 0) end triggerClientEvent ("gateSFviewGUI", hitPlayer) setTimer(function() outputChatBox ("You are loaded and ready for departure", hitPlayer, 255, 255, 0) end, 5000,1) elseif ((source == gate1SFmarker) or (source == gate2SFmarker) or (source == gate3SFmarker)) then outputChatBox ("You can't pick up passegers without a plane", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitSFgate) addEvent ("gateLSviewGUI", true) function markerHitLSgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == gate1LSmarker) or (source == gate2LSmarker) or (source == gate3LSmarker)) and (id == 511 or id == 577 or id == 592) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "LS") then outputChatBox ("Welcome to Los Santos Int. wait while you're unloading", hitPlayer, 255, 255, 0) givePlayerMoney(hitPlayer, 3000) end triggerClientEvent ("gateLSviewGUI", hitPlayer) setTimer(function() outputChatBox ("You are loaded and ready for departure", hitPlayer, 0, 255, 0) end, 5000,1) elseif ((source == gate1LSmarker) or (source == gate2LSmarker) or (source == gate3LSmarker)) then outputChatBox ("You can't pick up passegers without a plane", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitLSgate) addEvent ("planeSpawn", true) addEventHandler ("planeSpawn", getRootElement(), function (aircraft) Plane = createVehicle(tonumber(aircraft), 1477.4, 1270.9, 11) setCameraMatrix(1502, 1292, 11, 1475, 1288, 13.8, 90, 90) warpPedIntoVehicle ( source, Plane ) outputChatBox ("Pickup passengers at the terminal.", source, 0, 255, 0) end) addEvent ("setFlightPlan", true) addEventHandler ("setFlightPlan", getRootElement(), function (departure, destination) outputChatBox (departure.." Airport: You have clearance to taxi to runway 69", source, 255, 255, 255) setTimer(function() outputChatBox (departure.." Airport: You have clearance for take-off", source, 0, 255, 0) outputChatBox (departure.." Airport: Have a nice flight to "..destination, source, 0, 255, 0) end, 12000,1) setAccountData (getPlayerAccount (source), "flightDeparture", (tostring(departure))) setAccountData (getPlayerAccount (source), "flightDestination", (tostring(destination))) setElementData(source, "flightDeparture", departure) setElementData(source, "flightDestination", destination) end) addEvent ("destroyPlane", true) function destroyplane() local theVehicle = getPedOccupiedVehicle (source) local id = getElementModel(theVehicle) if (id == 511 or id == 577 or id == 592) then destroyElement(Plane) else end end addEvent ("visiblePlaneMarkers", true) function visiblePlaneMarkers(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if (id == 511 or id == 577 or id == 592) then else end end addEventHandler("onVehicleEnter", rootElement, visiblePlaneMarkers) addEventHandler("onVehicleExit", rootElement, destroyplane) addEventHandler("onPlayerQuit", rootElement, destroyplane) planeC.lua --- PLANE SPAWN WINDOW --- planeWindow = guiCreateWindow(0.35, 0.35, 0.3, 0.3,"NSH planes",true) guiSetVisible (planeWindow, false) guiSetAlpha(planeWindow,1) guiWindowSetSizable(planeWindow,false) selectLabel = guiCreateLabel(0.0423,0.1009,0.8889,0.078,"Select your plane",true,planeWindow) guiSetAlpha(selectLabel,1) guiLabelSetColor(selectLabel,255,255,255) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") planeGridList = guiCreateGridList(0.0476,0.1789,0.9048,0.6789,true,planeWindow) guiGridListSetSelectionMode(planeGridList,0) planeColumn = guiGridListAddColumn(planeGridList,"ID",0.2) planeColumn = guiGridListAddColumn(planeGridList,"Aircraft",0.7) planes = {[511] = true, [592] = true, [577] = true} local planelist = { {511, "KLM Fokker 50 Cityhopper"}, {577, "KLM Boeing 737-800"}, {592, "KLM Boeing 747-400"}} for i,v in ipairs (planelist) do local row = guiGridListAddRow (planeGridList) guiGridListSetItemText (planeGridList, row, 1, (v[1]), false, true) guiGridListSetItemText (planeGridList, row, 2, tostring(v[2]), false, true) end flyButton = guiCreateButton(0.0476,0.8624,0.905,0.0963,"Get in a plane",true,planeWindow) guiSetAlpha(flyButton,1) --- LAS VENTURAS GATE WINDOW --- gateLVWindow = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"Las Venturas Airport",true) guiSetVisible (gateLVWindow, false) guiSetAlpha(gateLVWindow,1) guiWindowSetSizable(gateLVWindow,false) selectDestLabel = guiCreateLabel(0.0423,0.2009,0.8889,0.10,"Select your destination:",true,gateLVWindow) guiSetAlpha(selectDestLabel,1) guiLabelSetColor(selectLabel,255,255,150) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") LVtoSFbutton = guiCreateButton(0.0476,0.6624,0.45,0.2963,"San Fierro",true,gateLVWindow) guiSetAlpha(LVtoSFbutton,1) LVtoLSbutton = guiCreateButton(0.5476,0.6624,0.45,0.2963,"Los Santos",true,gateLVWindow) guiSetAlpha(LVtoLSbutton,1) --- SAN FIERRO GATE WINDOW --- gateSFWindow = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"San Fierro Airport",true) guiSetVisible (gateSFWindow, false) guiSetAlpha(gateSFWindow,1) guiWindowSetSizable(gateSFWindow,false) selectDestLabel = guiCreateLabel(0.0423,0.2009,0.8889,0.10,"Select your destination:",true,gateSFWindow) guiSetAlpha(selectDestLabel,1) guiLabelSetColor(selectLabel,255,255,150) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") SFtoLVbutton = guiCreateButton(0.0476,0.6624,0.45,0.2963,"Las Venturas",true,gateSFWindow) guiSetAlpha(SFtoLVbutton,1) SFtoLSbutton = guiCreateButton(0.5476,0.6624,0.45,0.2963,"Los Santos",true,gateSFWindow) guiSetAlpha(SFtoLSbutton,1) --- LOS SANTOS GATE WINDOW --- gateLSWindow = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"Los Santos Airport",true) guiSetVisible (gateLSWindow, false) guiSetAlpha(gateLSWindow,1) guiWindowSetSizable(gateLSWindow,false) selectDestLabel = guiCreateLabel(0.0423,0.2009,0.8889,0.10,"Select your destination:",true,gateLSWindow) guiSetAlpha(selectDestLabel,1) guiLabelSetColor(selectLabel,255,255,150) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") LStoLVbutton = guiCreateButton(0.0476,0.6624,0.45,0.2963,"Las Venturas",true,gateLSWindow) guiSetAlpha(SFtoLVbutton,1) LStoSFbutton = guiCreateButton(0.5476,0.6624,0.45,0.2963,"San Fierro",true,gateLSWindow) guiSetAlpha(SFtoLSbutton,1) addEvent ("airLVviewGUI", true) function airLVviewGUI () if (getLocalPlayer() == source) then guiSetVisible (planeWindow, true) showCursor (true) end end addEventHandler ("airLVviewGUI", getRootElement(), airLVviewGUI) addEvent ("gateLVviewGUI", true) function gateLVviewGUI () if (getLocalPlayer() == source) then guiSetVisible (gateLVWindow, true) showCursor (true) end end addEventHandler ("gateLVviewGUI", getRootElement(), gateLVviewGUI) addEvent ("gateSFviewGUI", true) function gateSFviewGUI () if (getLocalPlayer() == source) then guiSetVisible (gateSFWindow, true) showCursor (true) end end addEventHandler ("gateSFviewGUI", getRootElement(), gateSFviewGUI) addEvent ("gateLSviewGUI", true) function gateLSviewGUI () if (getLocalPlayer() == source) then guiSetVisible (gateLSWindow, true) showCursor (true) end end addEventHandler ("gateLSviewGUI", getRootElement(), gateLSviewGUI) addEvent ("onClientGUIClick", true) function onClientGUIClick (button, state, absoluteX, absoluteY) if (source == flyButton) then guiSetVisible (planeWindow, false) showCursor (false) if (guiGridListGetSelectedItem (planeGridList)) then local planeID = guiGridListGetItemText (planeGridList, guiGridListGetSelectedItem (planeGridList), 1) triggerServerEvent ("planeSpawn", getLocalPlayer(), planeID) end elseif (source == LVtoSFbutton) then guiSetVisible (gateLVWindow, false) showCursor (false) departure = tostring("LV") destination = tostring("SF") triggerServerEvent ("setFlightPlan", getLocalPlayer(), departure, destination) elseif (source == LVtoLSbutton) then guiSetVisible (gateLVWindow, false) showCursor (false) departure = tostring("LV") destination = tostring("LS") triggerServerEvent ("setFlightPlan", getLocalPlayer(), departure, destination) elseif (source == SFtoLVbutton) then guiSetVisible (gateSFWindow, false) showCursor (false) departure = tostring("SF") destination = tostring("LV") triggerServerEvent ("setFlightPlan", getLocalPlayer(), departure, destination) elseif (source == SFtoLSbutton) then guiSetVisible (gateSFWindow, false) showCursor (false) departure = tostring("SF") destination = tostring("LS") triggerServerEvent ("setFlightPlan", getLocalPlayer(), departure, destination) elseif (source == LStoLVbutton) then guiSetVisible (gateLSWindow, false) showCursor (false) departure = tostring("LS") destination = tostring("LV") triggerServerEvent ("setFlightPlan", getLocalPlayer(), departure, destination) elseif (source == LStoSFbutton) then guiSetVisible (gateLSWindow, false) showCursor (false) departure = tostring("LS") destination = tostring("SF") triggerServerEvent ("setFlightPlan", getLocalPlayer(), departure, destination) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick)
  17. Hey guys, i got another problem, this is wanted levels script, and i want it have max 50 stars, not 8, it comes with police job script from community wanted.lua addEventHandler("onPlayerJoin", root, function ( ) setPlayerNametagText ( source, getPlayerName ( source ) .."[".. getPlayerWantedLevel ( source ) .."]" ) end ) function updateNametagWantedLevel ( ) for index, player in ipairs ( getElementsByType ( "player" ) ) do setPlayerNametagText ( player, getPlayerName ( player ) .."[".. getPlayerWantedLevel ( player ) .."]" ) end end setTimer ( updateNametagWantedLevel, 3000, 0 )
×
×
  • Create New...