Jump to content

Linux_Shines

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Linux_Shines

  1. When I'm copy your code, Jaysds1, and write in console debugscript 3, it says (when I load script, console don't display any error, but when I write command /v_inv, the error below is showing): attempt to call global 'getPlayerAccount' (a nil value)
  2. Yeah, that would be a good solution if I really need to hide the car in front of player (a strange idea, I know), but unfortunately not what I meant, precisely writing, I mean that - when a player is in the car, script sets setElementAlpha for him car, player IS in the vehicle and can drive this vehicle normally. I'm sorry for that, I don't make myself clear.
  3. Hello again today and and immediately I turn to the problem - invisible car only for one player who is an administrator in addition. Exactly - how to do this? I'm trying with this code, but it's not work properly + I don't know how to check, if the player is administrator or not: function invisibility(source) if(getElementAlpha(source) > 200) then setElementAlpha(getPedOccupiedVehicle(source), 0) outputChatBox("#FF0000Your car is now invisible.", source, 0, 255, 0, true) else setElementAlpha(getPedOccupiedVehicle(source), 255) outputChatBox("#FF0000Your car is now visible.", source, 0, 255, 0, true) end end addCommandHandler("v_inv", invisibility) So, how to do it?
  4. Uhm... okay, this reply is not such that I expected. Thread can be closed.
  5. Hi all, good peoples. I've question - it is possible to make an script, so that boats will be able to fly? Like the flying cars? I'm trying to make command (below is modified "flying cars" and it works), it works, but setWorldSpecialPropertyEnabled don't accept "airboats". So, is there some other, working argument? addCommandHandler("fly_boat", function (command) if not isWorldSpecialPropertyEnabled("airboats") then setWorldSpecialPropertyEnabled("airboats", true) -- airboats not work, but maybe it's a string like this, which works? outputChatBox("Flying boats enabled.", 255, 255, 0) else setWorldSpecialPropertyEnabled("airboats", false) -- airboats not work, but maybe it's a string like this, which works? outputChatBox("Flying boats disabled.", 255, 0, 0) end end )
  6. I'll pray for this option. Thanks for quick reply. Thread may be closed.
  7. Hello again and I would like to present my idea. So, as I mentioned in the previous topic (this), I would like to know whether there is any possibility of a thing. I mean supporting any ".ide" or ".ipl" files, and possibility of modding their? This will be good thing to convert some of "new" (example downloaded) objects dedicated to San Andreas and modify it to work in MTA.
  8. All what I need, is put some code from vehicles.ide to MTA (exactly this code is placed below). 480, comet, comet, car, COMET, COMET, null, executive, 7, 0, 0, -1, 0.735, 0.735, 1
  9. Hello peoples, I'm coming with... problem(?) or simply, I call it an "wrinkle". My wrinkle is replace one line from vehicles.ide to MTA engine. I know, that a handling may be called like this: function handling() for _,veh in pairs(getElementsByType("vehicle")) do if getElementModel(veh) == 480 then setVehicleHandling(veh, "mass", 1440.0) setVehicleHandling(veh, "turnMass", 3513.6) setVehicleHandling(veh, "dragCoeff", 0.77) setVehicleHandling(veh, "centerOfMass", {0.0, 0.0, 0.004}) setVehicleHandling(veh, "percentSubmerged", 75) setVehicleHandling(veh, "tractionMultiplier", 0.74) setVehicleHandling(veh, "tractionLoss", 0.787) setVehicleHandling(veh, "tractionBias", 0.5) setVehicleHandling(veh, "numberOfGears", 5) setVehicleHandling(veh, "maxVelocity", 343.3) setVehicleHandling(veh, "engineAcceleration", 22.27) setVehicleHandling(veh, "engineInertia", 49.0) setVehicleHandling(veh, "driveType", "rwd") setVehicleHandling(veh, "engineType", "petrol") setVehicleHandling(veh, "brakeDeceleration", 4.2) setVehicleHandling(veh, "brakeBias", 0.57) setVehicleHandling(veh, "ABS", false) setVehicleHandling(veh, "steeringLock", 25.54) setVehicleHandling(veh, "suspensionForceLevel", 0.6) setVehicleHandling(veh, "suspensionDamping", 0.14) setVehicleHandling(veh, "suspensionHighSpeedDamping", 3.3) setVehicleHandling(veh, "suspensionUpperLimit", 0.05) setVehicleHandling(veh, "suspensionLowerLimit", -0.08) setVehicleHandling(veh, "suspensionFrontRearBias", 0.45) setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.4) setVehicleHandling(veh, "seatOffsetDistance", 0.1) setVehicleHandling(veh, "collisionDamageMultiplier", 0.69) setVehicleHandling(veh, "monetary", 192500) setVehicleHandling(veh, "modelFlags", 65A624) setVehicleHandling(veh, "handlingFlags", 348803) setVehicleHandling(veh, "headLight", 1) setVehicleHandling(veh, "tailLight", 1) setVehicleHandling(veh, "animGroup", 19) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), handling) And it works good, but my question is - When I've an this line to replace: 480, comet, comet, car, COMET, COMET, null, executive, 7, 0, 0, -1, 0.735, 0.735, 1 is there any function to load this into MTA?
  10. Firstly - hello, and sorry for bumping (I think it's few days, but it's always bumping). I'm starting to learn an Lua language and starting play in MTA. But it's not thread to welcome. I have same problem like user, who's be quoted by me. My PC work under Windows XP Service Pack 3, when I try to put a folder with MTASE whethever on disk, the program scream But I've already installed an MTA in folder "C:\Program Files\MTA". I try do it same, like here, but MTASE still don't work. Sorry for my crappy english and please 50p, fix this or I dunno, make a installer for this app or something. Regards.
×
×
  • Create New...