Jump to content

Mishqutin

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by Mishqutin

  1. Ok but, what does it do besides changing the train direction?
  2. I made a ped controlled train. The thing is that it's unloaded and stops moving when no players are in area. Any way I can make it go around the map?
  3. How do I increase draw distance of vehicles? They just disappear after being 200 units away. I'm making a Surface to Air Missile launcher that spawns heat-seeking missiles but they don't lock on vehicles that are too far away.
  4. Colored text in console (F8) would be very helpful and will make errors more readable.
  5. Thanks! I forgot about that function.
  6. But getElementPosition() returns only position.
  7. I am making a vehicle turret. So far I've made a function that rotates the turret horizontaly: function rotateTurret() local rotation = getPedCameraRotation(getLocalPlayer()) local veh = getPedOccupiedVehicle(getLocalPlayer()) local _, _, vehRotation = getElementRotation(veh) setElementAttachedOffsets(vWeapon, 0, 0, 2, 0, 0, 0-vehRotation-rotation+90) if vWeapon then setTimer(rotateTurret, 100, 1) end end And I couldn't find function returning elevation of player's camera.
  8. Is there any way I can make e.g. Cargobob fly faster? Editing handling settings doesn't do much.
  9. If I spawn a vehicle from freeroam panel on my mostly unmodified server and don't get in after some time it just disappears. EDIT: Actually found what to change: local function onExit() local t = tonumber(get("vehicleExpireTime")) or 600000 vehicleDestroyTimers[source] = setTimer(destroyVehicle,(t > 50 and t or 50),1,source) addEventHandler("onVehicleEnter",source,destroyTimer) end
  10. I mean they despawn even if not blown up.
  11. How do I stop despawning vehicles created by players/resources?
  12. I don't mean interior. A model with interior so somebody can put something in.
  13. Hi! I couldn't find resource that adds Andromada's model an interior. I've seen many servers are using it. Does anyone know where I can get it? I'm not sure if this is the right section btw.
  14. I just want to know resource's name. I know I can script own and that there are many simmilar scripts.
  15. Hi there! I've recently played on the "Default MTA Server || Freeroam [P]". There are many poeple. I'd like to know which resource they're using to disable deathmatch. Does anyone know? I couldn't find any info.
  16. So I am making a vehicle shop system. I want some vehicles to have changed handling when they spawn. There's a problem, 'cause a 'for loop' that sets handlings isn't executed. I don't know what could cause this. Here's the code: local vehSale = {} vehSale["premier"] = {426, 2000, {}} vehSale["blista-compact"] = {496, 2400, {}} hdl_blista_compact_rwd = {} hdl_blista_compact_rwd["driveType"] = "rwd" hdl_blista_compact_rwd["mass"] = 1040 vehSale["blista-compact-rwd"] = {496, 2800, hdl_blista_compact_rwd} hdl_blista_sport = {} hdl_blista_sport["driveType"] = "rwd" hdl_blista_sport["mass"] = 1100 hdl_blista_sport["engineAcceleration"] = 12.8 hdl_blista_sport["engineInertia"] = 4 hdl_blista_sport["collisionDamageMultiplier"] = 0.55 hdl_blista_sport["steeringLock"] = 35 vehSale["blista-sport"] = {496, 4500, hdl_blista_sport} function buyVehicle(source, cmdName, vName) if not vehSale[vName] then outputChatBox("There is no such vehicle for sale", source) return false end if getPlayerMoney(source) < vehSale[vName][2] then outputChatBox("You don't have money for that", source) return false end local veh = createVehicle(vehSale[vName][1], 0, 0, 0) spawnVehicle(veh, -1706, 13, 5) for k, v in ipairs(vehSale[vName][3]) do print(k) setVehicleHandling(veh, k, v) end setPlayerMoney(source, getPlayerMoney(source)-vehSale[vName][2]) outputChatBox("Vehicle bought", source) end addCommandHandler("buy", buyVehicle) So I made a table (vehSale) where I put all avaliable cars. Under key premier at 1st index is vehicle ID, 2nd - price, 3rd - Handlings to change. I wrote a function that lets players buy vehicles. It's named buyVehicle(). First it checks if vehicle is avaliable and if player can afford it. Next it spawns vehicle at San Fierro docks and then applies handling. And that part of code doesn't work. After loop subtracts player money and outputs "Vehicle bought". Anything but that loop does work. I tried this code at the beggining of program: for k, v in ipairs(getOriginalHanling(496)) do print(k) print(v) end And this doesn't work too. Man, f*ck this. I've just changed ipairs() to pairs() and ANYTHING is WORKING. Lol
  17. I know how to script in Lua but I am searching for already done resources.
  18. Hi! I am making my own MTA SA server and I need some resources for it. Currently I'm looking for: Vehicle managing system (e.g. stop engine, open doors, lock car), Infinite nitrom or any other nice resources And I want to know how to make skin don't change after death.
  19. And also when I start my own server with hedit (I tried 2.1.3 and 2.1.1) result stays same.
  20. Where are saved all the files that are downloaded when I enter the server?
  21. I don't know really where to put this topic. I can't open Handling Editor. When I press B and F5 (like in help of the server) nothing happens. I was playing on server 'TRINITY'. Also there is glitched window in the top left.
×
×
  • Create New...