Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 22/02/22 in all areas

  1. Hello all. This is another custom map open to the public of the MTA community made by me. It's a new island where players are free to go and explore. Please be aware this map will not come with any resources other than the map itself, draw distance and some custom textures. Feel free to use the map for any gamemode. This map offers the following stuff (Total Objects: 1622): - Airport - Beaches - Bridges - Contruction Area - Dock - Factories - Fire Department - Forested Area - Gas Station - Hospital - Parking Lots - Police Station - Restaurants - Ships - Shopping Area - Skyscrapers - Small Mountain - Stunt Objects - Suburban Area - Traffic Lights, Lampposts - Warehouses VIDEO: SCREENSHOTS: INSTALLATION: 1 - Simly unpack the ZIP file. Open the "resources" folder and copy the "Custom-City-LS" folder to: <MTA installation directory>\server\mods\deathmatch\resources 2 - Connect to your server and type "refresh" in the console window so the server will detect the new resources. 3 - Now in the console again type in: start Custom-City-LS. That's it Note: you can also open it with the map editor. LOCATION: Los Santos X: 2904 Y: -792 Z: 11 CLICK HERE TO DOWNLOAD This map wasn't rushed in any way, I've always tried to deliver high quality maps, also it has been tested for bugs and gameplay. Please do not upload these files on any other site. However, you are welcome to share the link to this site whereever you want. Cheers and have fun! MORE MAPS FOR FREE: [RACE] Reiko's Map-Pack [RACE] RG's Map-Pack [RACE] Custom Racing Circuit Map-Pack
    1 point
  2. THANKS YOU ARE BEST <333
    1 point
  3. if you want to run this event you can do it with setTimer For example you set the timer to 1 second, on the client side you then pass the triggerServerEvent to this timer this is better than calling it during every frame
    1 point
  4. I understand the solution, but how I could make the "fuel" start to "decrease" if that event it's not added? edit: I mean the fuel-system, it starts to decrease when the player starts moving with the vehicle or/and the engine it's on
    1 point
  5. In fact, there is a very bad situation that I noticed in this resource, and that is this. Running triggerServerEvent per frame inside onClientRender event It will cause the server to consume a very large network connection and cause bad optimization of the server, so it is a very critical situation. so I suggest you delete this line function getCarStateColor(fuelVeh) --triggerServerEvent("verGasolina", localPlayer) -- <-- this if (fuelVeh) then local g = (255/100.0000) * fuelVeh local r = 255 - g local b = 0 return r, g, b else return 0, 255, 0 end end local csr, csg, csb = getCarStateColor() -- <-- this for fuel maybe you can use setElementData setElementData(veh, "Fuel", column["fuelofcar"]) --Create a key named "Fuel" and export the information from the database on client side use getElementData to get it getElementData(vehicle, "Fuel")
    1 point
  6. It worked And, sorry if this is too much, but I want to ask, what's the problem here? function getCarStateColor(fuelVeh) triggerServerEvent("verGasolina", localPlayer) if (fuelVeh) then local g = (255/1000) * fuelVeh local r = 255 - g local b = 0 return r, g, b else return 0, 255, 0 end end I want to change the color of a icon with the fuelVeh value... I mean, if the fuel it's to low then the icon will turn "red", but it doesn't work properly. (The fuel system works, it turn off the veh if the fuel it's 0 all it's fine, that's why I think the problem it's in the function and not into the fuel-check system)
    1 point
  7. triggerServerEvent("verGasolina", localPlayer) can you change root to localPlayer
    1 point
  8. The speed must be constantly set for this function to work. To do this, use a timer or a render to constantly maintain the speed. I don 't know for sure if it is possible to replace the shooting effect , but I can offer an option to create an object and count the trajectory of the bullet ( and already apply your shader to the object itself )
    1 point
  9. Olá. Utilize setAccountData e getAccountData.
    1 point
  10. What you describe does not sound like a perfect solution to authentication, especially in regards to serial spoofing, and serials not being guaranteed to be unique. All you would need to know regarding safe authentication and handling of credentials can be found here: disclaimer: I'm the author of the user guide in question.
    1 point
  11. Hello everyone, Now i preesent you simple MTA:SA server monitoring solution written in go language. Actually this is an adoptation of Lipau3n's python 3 solution ( topic, repo ). Via server object you can get some information like: Game (mta) Address string with MTA server ip address Port - server main port (UDP) AsePort - main MTA:SA port + 123 Name - server name Gamemode - server mode Map - server map Version - mta:sa server version Players - number of players on the server right now Maxplayers - the maximum number of players that can join Usage example: package main import ( "fmt" "github.com/LuaSavage/mta-monitoring/server" ) func main() { // pass server address and port exampleServer := server.NewServer("185.71.66.81", 22003) // Note that it updating fields once. // To update them frequently or on occasion you've to have some sort of poller if err := exampleServer.UpdateOnce(); err != nil { panic(err) } // Printing updated data in objects structure fmt.Printf("%+v\n", exampleServer) // Printing link to join mta:sa server fmt.Println(exampleServer.GetJoinLink()) } Source code here: github
    1 point
  12. Using @Overkillz script Make a folder in resource directory named antiafk make three files: afk_c.lua, afk_s.lua, meta.xml in afk_s.lua paste: function kickPlayerFromServer() kickPlayer (source) outputChatBox(getPlayerName(source).." #ffffffhas been kicked by ANTI-AFK BOT",root,255,255,255,true) end addEvent("onkickPlayerFromServer",true) addEventHandler("onkickPlayerFromServer",getRootElement(),kickPlayerFromServer) in afk_c.lua paste: local afkTime = 30 --In Minutes local antiAFKkeys = {"accelerate", "vehicle_left", "vehicle_right", "brake_reverse"} --Check out more keys at https://wiki.multitheftauto.com/wiki/Key_names kickerTimer = setTimer(function() triggerServerEvent("onkickPlayerFromServer",localPlayer) end,afkTime*1000*60,1) function afkReset() resetTimer(kickerTimer) end do for i,key in ipairs(antiAFKkeys) do bindKey ( key, "down", afkReset ) end end in meta.xml paste this: <meta> <info author="OVERKILLZ" type="script" name="ANTI-AFK" /> <script src="afk_c.lua" type="client" cache="false" /> <script src="afk_s.lua" type="server" /> </meta> Now go to your server window and type refresh or refreshall and then type start antiafk
    1 point
×
×
  • Create New...