Jump to content

Spakye

Members
  • Content Count

    23
  • Joined

  • Last visited

Community Reputation

4 Neutral

1 Follower

About Spakye

  • Rank
    Civilian

Details

  • Gang
    [UVA]Moderator

Recent Profile Visitors

258 profile views
  1. Hello, you can store a var like canEnter = true then when the player leaves the gui you turn it to false and start a timer that will turn it to true after 3mins. setTimer(function() canEnter=true end, 180000,1)
  2. I believe you need to check the source manually. like if source == buttonAuth then your function Take a look at onDgsMouseClick event in the wiki edit: nevermind im wrong
  3. nvm problem solved!
  4. Hi guys, i have an issue with my own login panel, whenever i create a new account and then try to login the console says that the password is incorect. The weird thing is that i did this login panel like months ago and everything was working fine. i didnt touch it since and today i have this problem. I did few tests, using some outputchatbox and searching in the internal db. I know for sure that accounts are created and that i dont send an hashed password when registering or login in. I can log in perfectly fine with all the accounts that i made before today. I also have a
  5. Hello, i dont think you need to use getElementType since the source of the event will always be the player that got dammaged. Also use getElementModel() instead of getPedSkin. any error ?
  6. I see one little mistake, in your errors messages you use vehicles_notes and in your screenshot of the db you use vehicle_notes
  7. Hello, you are using numbers on line 6 in the outputChatBox but you didnt assign any value to it. you should add this to the dchat function and i guess it should work. local numbers = tostring(math.random(1,100))
  8. then use toJson to store the skin table in the database
  9. hello, SELECT * FROM staff WHERE hasPermission = 'true'
  10. If you are using mta account system you dont need a data base just to store a skin, use setAccountData() to save the skin then when the player join use getAccountData() to get the skin and apply it to the player
  11. hello, if i understand well you just need to add spawnPlayerAfterLogin(client) after the if condition
  12. what error does it give ? edit : i notice i forgot ) at then end of the code, if you copy pasted my code then add ) at the end
  13. i dont understand why you need the findPlayer function you could do like that addCommandHandler("give", function(player, cmd, name, amount) local amount = tonumber(amount) if name and amount and amount > 0 and math.floor(amount) == amount then -- bugfix local target = getPlayerFromName (name) local money = getPlayerMoney(player) if target ~= false then if money >= amount then takePlayerMoney(player, amount) givePlayerMoney(target, amount) outputChatBox("You
  14. You can start working on showing a guiwindow using triggerClientEvent, add a grid and then add vehicles to the grid. triggerClientEvent guiCreateWindow guiCreateGridList guiGridListAddColumn guiGridListAddRow Then you can make it work with your lvl system if you have one
  15. Hello, there is few things to do. Try to do it step by step, first try to make a red marker at the location you want with : createMarker Then try to create an event attached to it with : onPlayerMarkerHit
×
×
  • Create New...