Beethoven Posted January 27, 2009 Share Posted January 27, 2009 wat is wron with this: function supercar ( player, command ) local admin = getLocalPlayer ( ) local x, y, z = getElementPosition ( admin ) newvehicle = createVehicle(528, x, y+2, z+3) setVehicleDamageProof(newvehicle, true) end addCommandHandler ( "supercar", supercar ) and this: function invisible() setElementAlpha(getLocalPlayer(), 0) end addCommandHandler ( "invisible", invisible ) Both client side. Beethoven Link to comment
Gamesnert Posted January 27, 2009 Share Posted January 27, 2009 Ye, what IS wrong with it? It might be helpful to give us some more info... How the hell are we supposed to guess the errors, warnings or the thing that doesn't work... Link to comment
Beethoven Posted January 27, 2009 Author Share Posted January 27, 2009 (edited) if i type ingame /invisible or /supercar, nothing happens. any mistakes i made? EDIT: works, may sound stupid(it is), forgot to start the resource. Edited January 27, 2009 by Guest Link to comment
Gamesnert Posted January 27, 2009 Share Posted January 27, 2009 I'd suggest adding them to the meta.xml and starting the resource. Link to comment
Beethoven Posted January 29, 2009 Author Share Posted January 29, 2009 When I type /supercar now, a car spawns. But..... I can't get in that car. Wat is the problem? Beethoven. Link to comment
darkdreamingdan Posted January 30, 2009 Share Posted January 30, 2009 Clientside cars are not enterable, since the server must be aware of vehicles. You should add the command handler serverside. Link to comment
Beethoven Posted January 30, 2009 Author Share Posted January 30, 2009 Clientside cars are not enterable, since the server must be aware of vehicles.You should add the command handler serverside. I can't test it on my pc, because I didn't make my homework and he has put my monitor in his safe , So if I type /supercar, I am the only one who is able to see it? Link to comment
Ace_Gambit Posted January 30, 2009 Share Posted January 30, 2009 I am the only one who is able to see it? Just remember that client side basically means not visible to others. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now