Jump to content

Leaderboard

Popular Content

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

  1. Server Time Sync This resource is used to sync server timestamp (in Milliseconds) to all clients. It is for scripters and resources that may use it in the future. The resource itself is not very complicated at it's core, but it can be incredible useful for (infinity) animations. For example to let many trains drive around the map with almost no bandwidth required, in that resource is the same concept applied. local timeNow = exports.servertimesync:getServerTime() if timeNow then local currentRotation = ((timeNow % 10000) / 10000) * 360 -- Rotate 0-359 every 10 seconds. end I have added a little test resource. Which you can download below. World location: 0, 0, ~. You can download the resource here. Enjoy your server . The test resource. (requires servertimesync)
    1 point
  2. Heya, You'll just have to use a for loop like in your code above. Using getPlayerAccount and setAccountData should be enough, no need for those if branches inside your function.
    1 point
  3. - noclip ver. 1.3.0 Resursa de airbreak intitulat noclip, fiindca n-am gasit pe nicaieri unul up-to-date sau functional, am decis sa fac eu unul. Este recomandat doar pentru development, setarile le gasiti in fisierele din resursa, acestea sunt necompilate. Have fun! Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18592
    1 point
  4. Wow, I'm very happy to see my scripts are still relevant, thanks! But it can be a negative thing as well, I mean it wasn't supposed to end up this way, back then I tried to improve the script, then I tried to make a new, a more advanced ped system from scratch but didn't have enough time, and to make things even worse, the code I wrote then looks horrible to me now So happy to feel appreciated, yet the fact that everyone's focused on my work that still wasn't satisfying enough to myself, gives me this unpleasant feeling that I gotta clean up this mess, gotta finish the work I once started but I don't know when I'm going to try scripting on MTA again Conversion of game paths to my path format sounds interesting, but making my own paths instead of converting the ones from the game was the reason I came up with my format and traffic editor to begin with. I was having trouble understanding some things in the game's format, and the paths have things like multiple nodes in a straight line, which needlessly uses more data. Now, to the documentation details. node_conns tells the connection ID from node IDs. That is, node_conns[node1_id][node2_id] = connection_id. Also, node coordinates are decimal fixed-point numbers, not floats, and RX/RY each takes 2 bytes as opposed to 4. Reading the value as integer and dividing it by 1000, you get the actual value. I had some problems converting between bytes and floats, and integers were faster to process. Finally, traffic lights. The value 3: "PED" means red for all cars, and that's when the peds cross the road. Normally it would work according to pedestrian traffic lights, but as far as I know, those are neither synced, nor scriptable - at least they weren't when I made the resource.
    1 point
  5. Have you considered the possibility that your "interior system" has no support for assigning interior values to your "item loot"? I suggest you to extend the createItemLoot function with an "interior" parameter and then put the following... ... local col = createColSphere(x,y,z,1.25) local lootMarker = createMarker(x,y,(z-1),"cylinder",0.5,255,255,255,30) local hasLoot = false setElementInterior(col, interior) setElementInterior(lootMarker, interior) lootPilesDataTable[col] = {} ... Have you been looking at what @Tut has suggested to you? What I have summarized here is what he wanted to tell you anyway so I wonder why you have not responded to him. In the GTA SA engine an interior is an integer index of the original game world to display. The world with index zero is the main game world with all the buildings. Every other index is special because it has an empty atmosphere. You can only see those elements through the game camera whose interior value matches the one of the camera.
    1 point
  6. I'll be releasing new streamer on the 1st. Also, I've added some modified VCS neons to VC.
    1 point
×
×
  • Create New...