Jump to content


  • Content Count

  • Joined

Community Reputation

5 Neutral

About SpecT

  • Rank
    Street Cat
  • Birthday 28/01/1990


  • Gang

Recent Profile Visitors

745 profile views
  1. SpecT


    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..
  2. 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.
  3. 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.
  4. 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.
  5. 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).
  6. 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.
  7. 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.
  8. @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
  9. 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
  10. 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.
  11. 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 ?
  12. @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.
  13. SpecT

    {Help} Fix Code

    Well you have duplicated functions which do the same thing. There is no reason to have 2 same functions attached to every event. This is why you get the messages twice. The code from line 26 to 49 is pretty much useless as it's a copy of the code above them.
  14. @zRodrigoMM I'm sorry ~5 years ago I gave bad resource as example to use And still maybe late reply but still could be useful for someone. Here is a better autoteams resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=612 There are instructions in the config.xml file. Good luck!
  15. SpecT


    After writing in a file you MUST close the file to save the changes you made to it by using. So after the fileWrite you should put fileClose(file)
  • Create New...