
Jumba'
Members-
Posts
254 -
Joined
-
Last visited
Everything posted by Jumba'
-
Try this viewtopic.php?f=91&t=21738&p=271191&hilit=getVehicleEngineState#p271191
-
Anyone know the id for the money pickup? Cause I can't find it.
-
you forgot to add which player's name it has to get. But anyway, the one on the wiki is fine
-
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,
-
straight from the wiki vehicles = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(vehicles) do blowVehicle ( vehicleValue ) end
-
Can't you just make a help.xml file in the gamemode folder? or is this different?
-
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
-
Oh, but Like normally you have sin and sin-1 (inversed) How do you do that in lua? (the sin-1 part)
-
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.
-
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.
-
press c
-
you mean this? viewtopic.php?f=91&t=21780
-
The stuff aenclosed in [ and ] are optional, you dont have to put the [ ], it just tells you that those arguments can be left blank.
-
Hey Quest, what's the [ and ] for? Does it mean like optional or soemthing?
-
maybe you should change /refresh to something else since its a command used in the mta admin =/
-
Err, you can change the prices by editing the values in %folder%\maps\shops.map there you shall see the "price" thing, edit that
-
Getting kicked from all servers BY CONSOLE!!!!
Jumba' replied to KINGmatan's topic in General discussion
you dont have a serial, its a known issue, no idea what you could do though. -
oh, so put something like this in the default group? "command.broph.give" access="false"/>
-
I tried that too but it didn't work.
-
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.
-
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 )
-
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 =)
-
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
-
you cant, VC doesnt support mods, you'd have to play without the modified files.
-
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