Jump to content

Gordon_G

Members
  • Posts

    282
  • Joined

  • Last visited

Everything posted by Gordon_G

  1. Il manque un end ligne 38 pour clore la condition de la ligne 31.
  2. For performance reason I don't advise you to do that on a server with a lot of people connected
  3. Gordon_G

    Acl vehicle

    No we won't do your job, we can explain you but we are not your slaves isObjectInACLGroup function requires two args as it's written on the mta's wiki isObjectInACLGroup ( string theObject, aclgroup theGroup ) First argument : theObject: the name of the object to check. Examples: "resource.ctf", "user.Jim". - source : wiki What is interesting us here is the "user.Jim" example because we want to know if the driver is an admin Maybe we could do something with it, like assembling "user." and the player's account name isObjectInACLGroup ( "user."..accName, aclgroup theGroup ) Second argument : theGroup: the ACL group pointer of the group from which the object should be found. - source : wiki The argument required here is not a string like in the first argument it's an "aclgroup" In the wiki's example you can see this : isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) The function that is interesting us is aclGetGroup let's copy and paste it in our function As you can see you could have solve your problem directly by just READING the wiki when @majqq gave you the right function Have a nice day
  4. Well, if the map is created from a serverside LUA's file do you really need to encrypt it ?
  5. I can see that you use the "db" resource by exporting, is the function in this resource returning the dbConnection ?
  6. I've worked on it, it's a very difficult subject In fact if you use setPedControlState, you'll have a lot of issue Firstly, it'll depends on client's framerate because this function is client side also you might have sync issues The best thing I could advise you is to freeze the player, then move him with setElementPosition every frame and during this process using setPedControlState to make him acts like if he was walking Or you could synchronise the position of your bots with the server so they are synchronized
  7. [BETA] GDayZ https://streamable.com/h5p9u - Inventory, Loot About me Hello, I'm a scripter from France, I practice this activity since 2 years but I have never released any project. Today I'd like to introduce you my project : GDayZ (meaning Gordon DayZ of course). Years ago I was playing MTA DayZ on many servers and I was like : "Yeah, that's cool, but those server are always the same, many bugs, many cheat, boring af". That's how I started working on my project in october 2018. My goal was to bring about a revolution on MTA DayZ.I have already shown a piece of GDayZ on this forum with my mapping tool that is used for the gamemode.
  8. That's not possible if this script is on server side Take a look at dimensions maybe
  9. I really like it, it's ambitious (for once on MTA) If you need help I'm here
  10. I think the "dev server" is a pretty bad idea, in fact, you really should let your scripter do it on his local machine
  11. I don't know how you can use string.gsub but you could just do your table all in lower case From local values = {"Hi", "Hello", "Hey"} To local values = {"hi", "hello", "hey"} And use string.lower( string ) In order to set the player's input in lower case
  12. A getElementData everu second and for every player (?) what a good optimisation
  13. Gordon_G

    I AM BANNED

    You can wait one day
  14. That's beautiful, honestly The background's buildings makes it look really realistic
  15. I meant, it's impossible by scripting Here you are talking about LOCAL files
  16. Yeah you don't want to create but you can't replace, so you have to create one
  17. You could just google it, well, I guess
  18. Yeah, it looks a bit like an arrow A bullet from this distance is not 100% precise of course, but not that much
  19. That's sympatic that your friend gave you a cool login panel but he didn't gave us So we can not guess the code
  20. Gordon_G

    Help Ha

    from wiki : marker createMarker ( float x, float y, float z [, string theType = "checkpoint", float size = 4.0, int r = 0, int g = 0, int b = 255, int a = 255, visibleTo = getRootElement( ) ] ) Replace getRootElement with the player's variable
  21. That's because you do not have to specify what player you want to outputChatBox off when you use it client side function highPing() local ping = getPlayerPing(getLocalPlayer()) if (ping > 100) then outputChatBox('#990033 ' .. getPlayerName(source) .. ' #ffffffhas high ping.', 250, 255, 250, true) end end addCommandHandler("ping", highPing)
  22. Using toJSON and fromJSON you can convert a table to a string You can save the string in a database, an XML file or even a txt file
×
×
  • Create New...