Jump to content

Jumba'

Members
  • Posts

    254
  • Joined

  • Last visited

Everything posted by Jumba'

  1. Try this viewtopic.php?f=91&t=21738&p=271191&hilit=getVehicleEngineState#p271191
  2. Anyone know the id for the money pickup? Cause I can't find it.
  3. you forgot to add which player's name it has to get. But anyway, the one on the wiki is fine
  4. I have the same problem, when I start a script the time goes to midnight even tho there's no mention of time in the script,
  5. Jumba'

    HELP!!

    straight from the wiki vehicles = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(vehicles) do blowVehicle ( vehicleValue ) end
  6. Jumba'

    HELP!!

    Can't you just make a help.xml file in the gamemode folder? or is this different?
  7. I get sin and cos extensively at school and I work with them (at school) regularly, but I cant really visualize what happens when you do it on the x,y,z coords. But I guess i'd just have to experiment and see
  8. Oh, but Like normally you have sin and sin-1 (inversed) How do you do that in lua? (the sin-1 part)
  9. maybe some of the other codes in the file are server only functions. try making a new file like "client_side.lua" and define that in the meta file and set it as type="client" while the other is server.
  10. function launch ( player, command ) local x, y, z = getElementPosition ( player ) local theVehicle = getPlayerOccupiedVehicle ( player ) local a,b,r = getVehicleRotation ( theVehicle ) x = x - math.sin ( math.rad(r) ) * 20 y = y + math.cos ( math.rad(r) ) * 20 ramp = createObject ( 1633, x, y, z, 0, 0, r ) setTimer ( RemoveRamp, 999999, 1, ramp ) local veh = getPlayerOccupiedVehicle ( player ) local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx*10, vy*10, vz*10 ) setTimer ( setVehicleModel ( The Vehicle, 511 ), 1000, 1) end Your syntax for setTimer is wrong, I dont really know whats wrong but try the one posted above.
  11. Jumba'

    Speed?

    you mean this? viewtopic.php?f=91&t=21780
  12. The stuff aenclosed in [ and ] are optional, you dont have to put the [ ], it just tells you that those arguments can be left blank.
  13. Hey Quest, what's the [ and ] for? Does it mean like optional or soemthing?
  14. maybe you should change /refresh to something else since its a command used in the mta admin =/
  15. Err, you can change the prices by editing the values in %folder%\maps\shops.map there you shall see the "price" thing, edit that
  16. you dont have a serial, its a known issue, no idea what you could do though.
  17. Jumba'

    How 2

    oh, so put something like this in the default group? "command.broph.give" access="false"/>
  18. I tried that too but it didn't work.
  19. oh, hmph. btw, just a note, comments in XML aren't -- but You should fix those check in cdm.lua, maybe you can find some usefull stuff there.
  20. Does this event even work? I tried everything I could think of, but I couldn't get it to work.. here's my code function nickChange ( source, oldnick, newnick ) outputChatBox( "You have succesfuly changed your nick from" .. oldnick .. " to " .. newnick .. "!", source, 255, 255, 255 ) end addEventHandler("onClientChangeNick", getRootElement(), nickChange )
  21. Jumba'

    How 2

    Yesh, uhm, open up the ctvdebug.lua file, and all the way in the bottom at line 614 you see written addCommandHandler ( "give", consoleGive ) This you comment out, thus making it -- addCommandHandler ( "give", consoleGive ) that should do it =)
  22. what the heck is playerSpawn? the function spawnPlayer? try local spawn = getElementsByType ( "spawnpoint" ) -- loop through them for key, value in pairs(spawn) do -- get our info local posX = getElementData ( value, "posX" ) local posY = getElementData ( value, "posY" ) local posZ = getElementData ( value, "posZ" ) -- create an object according to the flag position spawnPlayer ( posX, posY, posZ ) end
  23. you cant, VC doesnt support mods, you'd have to play without the modified files.
  24. Uhm, should the second then be there? you could just remove that I think, and why are you getting the coords and rotation? it just changes the model of the vehicle, so I think it'd be like function consoleChangeVehicle ( player, command, id ) if ( id ) then local newCar = tonumber( id ) local oldCar = getPlayerOccupiedVehicle( player ) setVehicleModel ( oldCar, newCar ) else outputChatBox( "You forgot to specify the car id", player ) end end But I cant test it cause my game freezes up when I play, so I dont know if it works
×
×
  • Create New...