Jump to content

Tails

Members
  • Posts

    740
  • Joined

  • Days Won

    16

Everything posted by Tails

  1. Thanks, good tutorial. So to understand correctly, there is absolutely no use for setElementData or getElementData?
  2. I chose setVehicleIdleRespawnDelay because I want the vehicle to respawn after someone has left it somewhere. Can't believe this stuff is so tricky... I'll look into it a bit more later. Thanks
  3. In the time that you disable the toggleVehicleRespawn, doesn't that screw up the setVehicleIdleRespawnDelay from the second function? There still seems to be an issue. At one point I had my inactive vehicle timer set to 10 and they would spawn after 7 seconds. Also if I enter a vehicle and move it only a few cm's it will not get respawned for some reason. Any clues?
  4. That seems to work, thanks! What did you change and why does it work now, can you explain?
  5. Nothing changed. The first function works fine without the second one. I just can't figure it out
  6. Cheers. That indeed fixed the issue I was having but the passengers thing is an issue. This is the original code in my script: function respawnExplodedVehicle() setTimer(respawnVehicle, 20000, 1, source) end addEventHandler("onVehicleExplode", root, respawnExplodedVehicle) function respawnInactiveVehicles() local vehicles = getElementsByType ("vehicle") for _, vehicle in ipairs(vehicles) do if (vehicles) then toggleVehicleRespawn(vehicle, true) setVehicleIdleRespawnDelay(vehicle, 120000) end end end addEventHandler ("onResourceStart", root, respawnInactiveVehicles) The problem here is that the timer in the first function doesn't work properly. Exploded vehicles respawn after 5-10 seconds. So I was looking for a solution. Any ideas?
  7. Almost feel ashamed of posting this but I just can't figure out this little function: function respawnInactiveVehicles(thePlayer) local vehicles = getElementsByType ("vehicle") local inVeh = getPedOccupiedVehicle(thePlayer) for _, vehicle in ipairs(vehicles) do if not inVeh then respawnVehicle(vehicle) end end end setTimer(respawnInactiveVehicles,5000,0) I'm getting a bad argument on line 3: Expected ped at argument 1 got nil. Server side script. Any help is appreciated
  8. It doesn't work while you stand on the ground, you get stuck. You have to first jump and then use it (alternatively set your position above the ground and then use it, or setElementVelocity upwards and then timer and setElementVelocity forwards, lol). Just shoots me in the same direction every time
  9. Shutdown your server before you edit the acl files
  10. You can modify them and replace the models through scripting.
  11. Added the function to my script but for e.x: setElementForwardVelocity(localPlayer,2) does nothing for me.
  12. Tails

    [Solved]

    It's very rude to remove your posts like that. Next time don't post the snippets of your code if you're too afraid that they will get stolen. These forums are here to help you and other people. So if you like to help other people then do not delete your posts next times.
  13. Why would you want a timer when it's already outputting the new meta data with the "onClientSoundChangedMeta" event?
  14. We don't know. Just browse through the categories and see if you can find them. For the billboard though, try "board" and for the power lines try "wire".
  15. Tails

    Object's

    Use the eyedrop tool(the crosshair at the bottom) in the map editor to get those objects
  16. Thank you for your awesome comments! Check out this building that we've created for our city Expect more to come soon!
  17. Thank you all. @DakiLLa, Try to use as little objects as possible like we have done in our map above. It consists of 7 custom objects. We applied LOD to each of them so it will technically count as 14 objects now with at least 8 of them visible at all times. For each object that you LOD it will add one extra object. So your map likely hit the object limit and that's causing your objects to lose their collisions. Try disabling LOD or only apply them to your floors if you're not already hitting the object limit. If you have custom floors, make them as big as possible so you will only have a few in the end. Don't LOD trees, and other small objects.
  18. The models are created in 3ds Max. Here's a new update for you guys, have fun!
  19. The textures have been changed up a little bit. New models will be added as well. Expect some updates soon.
  20. How much are you selling it for?
  21. Tails

    Green Candy

    This project is not dead yet! Luckely.
  22. Hi useryy, It is not possible to add custom objects without replacing an existing one. I recommend you replace one of the objects from the Liberty City mission in GTA:SA. You can find them if you search for 'lib'. Here's some code that I use to replace objects: addEventHandler("onClientResourceStart", resourceRoot, function() dff = engineLoadDFF ( "object.dff", 7643) engineReplaceModel ( dff, 7643) col = engineLoadCOL( "object.col" ) engineReplaceCOL( col, 7643 ) end ) addEventHandler("onClientResourceStart", resourceRoot, function() TXD = engineLoadTXD ( "texture.txd" ) engineImportTXD ( TXD, 7643 ) engineSetModelLODDistance ( 7643, 300 ) end )
×
×
  • Create New...