Jump to content

SpecT

Members
  • Posts

    656
  • Joined

  • Days Won

    9

Everything posted by SpecT

  1. You said you changed your mobo. From what to what motherboard have you upgraded ? Also do you have similar problems in other games ? If so it could be incompatibility between your parts and the new motherboard.
  2. Maybe the problem is the server you are playing in. Are those vehicles with custom skins ?
  3. This is the wrong place to complain about such a thing. Use this link to do it properly!
  4. Until someone who knows what exactly this is about here are some things you could try: - perform a clean install of latest GPU drivers - check for chipset drivers update and update them if they are old
  5. Is this about race gamemode? If so I remember (time ago) this happening. Parts of the maps were missing out of nowhere. The only working solution we found was to set auto-restart every midnight with cron jobs in the hosting.
  6. Then you should change the line I mentioned (in database.slua) to: local db = dbConnect("sqlite", "db.sql") So it will use SQLite instead of MySQL.
  7. I suspect that it has something to do with the database. Something must be missing or wrong with the database structure. I don't see anything wrong on this line. PS: I just checked the code from the other files in the GTIhousing and those getHouseData and setHouseData have operations with the database. As you can see the first orange errors are about the failure of connecting to the database. The resources have operations to create the DB tables if they don't exist but at first you NEED to create the database and change the details in database.slua On line 18 in database.slua you should change your details for the database: local db = dbConnect("mysql", "dbname=gti;host=127.0.0.1", "username", "password") If you host it on your PC (maybe Windows?) you will need XAMPP to host a MySQL server on your machine and setup all the stuff in phpMyAdmin. Or if it's hosted on server you should create a database in the control panel of the hosting site you use and then again set it up with phpMyAdmin.
  8. Then have you checked the second thing I wrote you above (remote access)?
  9. What is the point of setting a skin to a player when he leaves the server?
  10. Those errors are showing that the resource cannot connect to the database. Obvisouly it's set to connect to localhost (127.0.0.1) but if you don't have MySQL server hosted on this address (which probably is the case) then this is the reason of those errors.
  11. Ask the author of the resource? This section of the forum is to get help for a code you wrote not somebody else.
  12. It's either wrong credentials or remote access is not allowed (if the db and MTA server are hosted on different machines). Are you sure username and password are correct ?
  13. It's an old resource. Years ago there was a site that provided a free API to convert youtube vids to MP3 so you could play them in-game. It was buggy tho cuz it was taking some time to convert them and the playSound function just wouldn't play them. Soo back on topic - nowadays this website is dead which means this resource won't work. There are some resources you can find and use which play youtube music using the CEF browser.
  14. SpecT

    Help

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=15213 This resource has weapons save/load module. It also saves positions, skins, etc..
  15. Do you have any code we can help you with? We are here to help you with your scripts not write them from scratch for you.
  16. This resource https://community.multitheftauto.com/index.php?p=resources&s=details&id=18196 could help you as an example. It saves the skin in player's account.
  17. That's what I meant in the above post - YOU CAN'T. Instead you could just kick the player from the server when the quit button is pressed.
  18. AFAIK you can't close client's game with a script. The only way is the client to do that himself (via /quit or from the game menu).
  19. addEventHandler("onDgsMouseClick", buttonAuth, function(btn, state) if btn == "left" and state == "down" then local login, password = dgs:dgsGetText(inputLogin_edit), dgs:dgsGetText(inputPass_edit) if not string.find(login, "%S") then return end if not string.find(password, "%S") then return end triggerServerEvent("playerLogin", getLocalPlayer(), login, password) end end, false) This should fix the double execution.
  20. It's really confusing for sure If I got it right the OP wants to make some of those panels available only for certain persons. To do this one of the ways is to call a server function (from client-side) which will check whether the player's account is in an allowed ACL group and then from the result you will allow or disallow those panels for the client. Another way is everytime a player logins (onPlayerLogin) check if the account is in the allowed ACL group and then trigger client event to this player to allow the usage of the panels.
  21. @iPrestege is suggesting a function to get the server IP from the server configuration and compare it with the IP you want to authorize. This way the script won't work on other servers (if this is what you meant). Here is an example: if (getServerConfigSetting("serverip") == "Your.Server.IP.Here") then ... end
  22. I don't know if I get you right but you can use this resource to watch the messages on the server with a browser on server's http site. https://community.multitheftauto.com/index.php?p=resources&s=details&id=361
  23. Most of the times (for me) this happens because the server is calling a client-side event while the player is still downloading the stuff and the client script isn't loaded yet. So if this is the case you will have to do a check whether the player has loaded the client scripts and then call the client event(s) from the server-side.
  24. It's happening probably because the coordinates you put in there are inside building or under the ground. Check out the wiki documentation about this function and how to use it on the client side: setCameraMatrix PS: Oh I just noticed that the idea of all this is to make the screen black and show a login panel. Isn't this what you want ?
  25. @JeweL One of the resources your server runs is managing the chat messages. You should find out which one it is and show us the code so we could help you with it.
×
×
  • Create New...