Jump to content

LiOneLMeSsIShoT

Members
  • Posts

    609
  • Joined

  • Last visited

Everything posted by LiOneLMeSsIShoT

  1. addEventHandler("onPlayerLogin", root, function(_, account) if not getAccountData(account, "FirstTime") then outputChatBox("You're playing for the first time!", source, 0, 255, 0) setAccountData(account, "FirstTime", true) else outputChatBox("This is not the first time for you!", source, 255, 0, 0) end end) Yeah but i don't want to set him as first join if it's not his first join.... i want to check only if it's his first join..no need to set him
  2. how to check if the player just registerd for now? or means checks for his first join Reason: To give him money only on his first join... please help..i didn't find the function to do that ..
  3. I'm looking forward to make an inventory system...can someone help me to get all functions and even i need to make it?
  4. Meant about that...This script's not Changing ANYTHING!. I wont do it for you.. do some work on your on, this aint a place for people making stuff for you. Fixed it...Thank you anyway.
  5. Solved ... and Thanks a lot for your Help!
  6. Thanks..work but i got another problem....It's with Trigger sides....i've triggerd client side and then in debugscript it says i triggerd client side but serverside not added...see server side: ShopMarker = createMarker(2285.8000488281,549.59997558594,6.8000001907349,"cylinder",1.5,0,125,250,153) function Marker(hitPlayer) triggerClientEvent(hitPlayer,"Marker",getRootElement(),hitPlayer) end addEventHandler ("onMarkerHit",ShopMarker,Marker) client side: function Marker() guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end addEvent ("Marker", true) addEventHandler ("Marker", getRootElement(), Marker) Error: Server triggered clientside event Marker, but event is not added client side.
  7. Alright i did it: CloseButton = guiCreateButton(432, 298, 108, 43, "Close", false, GUIEditor.staticimage[1]) guiSetProperty(CloseButton, "NormalTextColour", "FFEF0000") addEventHandler ("onClientGUIClick", CloseButton, CloseShop) end ) function Marker() guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end addEvent ("Marker", true) addEventHandler ("Marker", getRootElement(), Marker) function CloseShop() if guiGetVisible (GUIEditor.Window[1]) then guiSetVisible (GuiEditor.Window[1], false) showCursor (false) end and Error now is: :80: attempt to index field 'window' (a nil value) and :80: is if guiGetVisible (GUIEditor.Window[1]) then
  8. Actually not like how you said...It's: CloseButton = guiCreateButton(432, 298, 108, 43, "Close", false, GUIEditor.staticimage[1]) guiSetProperty(CloseButton, "NormalTextColour", "FFEF0000") end ) function Marker() guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end addEvent ("Marker", true) addEventHandler ("Marker", getRootElement(), Marker) function CloseShop() if guiGetVisible (GUIEditor.Window[1]) then guiSetVisible (GuiEditor.Window[1], false) showCursor (false) end end addEventHandler ("onClientGUIClick", CloseButton, CloseShop)
  9. I'm Tried to close window on Button Click but it Gives me bad Argument..see Client: CloseButton = guiCreateButton(432, 298, 108, 43, "Close", false, GUIEditor.staticimage[1]) guiSetProperty(CloseButton, "NormalTextColour", "FFEF0000") function CloseShop() if guiGetVisible (GUIEditor.Window[1]) then guiSetVisible (GuiEditor.Window[1], false) showCursor (false) end end addEventHandler ("onClientGUIClick", CloseButton, CloseShop) Error: :84: Bad Argument @ 'addEventHandler' [Expected Element at argument 2, got nil]
  10. lol..Actually i don't need to know Accounts PASSWORDs!..I need to know Information about them...ONLY!
  11. Well, I'm trying to save accounts information which registerd.
  12. Actually Works Fine and Really Nice Thanks... Was my mistake...
  13. Yeah..i see "Toggled chatbubbles off." if i type it and when i try to toggle again to Toggled chatbubbles on. i don't see anything on player head too.. lol
  14. Can you give me an example with getaccounts?
  15. Whatever when i set Player Stat from Admin panel to 201 or even 101...the Level Stays 0..whatever when it be 100 or 200 the level changes..... can you fix this?
  16. I've made this script to show the points and level of the weapon. but when i reach to the another level the label don't get update.. function WeaponLevels() if getPedStat ( localPlayer, 69 ) >= 100 then guiSetText (GUIEditor.label[3],"Level: 1") elseif getPedStat ( localPlayer, 69 ) >= 200 then guiSetText (GUIEditor.label[3],"Level: 2") elseif getPedStat ( localPlayer, 69 ) >= 300 then guiSetText (GUIEditor.label[3],"Level: 3") elseif getPedStat ( localPlayer, 69 ) >= 400 then guiSetText (GUIEditor.label[3],"Level: 4") elseif getPedStat ( localPlayer, 69 ) >= 500 then guiSetText (GUIEditor.label[3],"Level: 5") elseif getPedStat ( localPlayer, 69 ) >= 600 then guiSetText (GUIEditor.label[3],"Level: 6") elseif getPedStat ( localPlayer, 69 ) >= 700 then guiSetText (GUIEditor.label[3],"Level: 7") elseif getPedStat ( localPlayer, 69 ) >= 800 then guiSetText (GUIEditor.label[3],"Level: 8") elseif getPedStat ( localPlayer, 69 ) >= 900 then guiSetText (GUIEditor.label[3],"Level: 9") elseif getPedStat ( localPlayer, 69 ) >= 1000 then guiSetText (GUIEditor.label[3],"Level: 10") end end addEventHandler( "onClientRender", root, WeaponLevels ) I mean about that...the label only write Level 1...if i reach to 200 point or more...the level don't set to "Level:2"
  17. I'm only need to know the players accounts on my server..no need to know their password only...
  18. How to save registerd accounts in "xml" file? because idk what's the username or password of the players on my server. can you give me an example? and what functions, events?
  19. Yeah i know that...but i want the song starts only when the player join...and then stops it when he Login.
  20. I've made this script to start sound when player Join. Client Side but not work. Client: function onPlayerJoin () local sound = playSound ("Sounds/PanelSounds.mp3") setSoundVolume (sound, 1.0) end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoin) Why?
×
×
  • Create New...