Jump to content

wats wrong?


Beethoven

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...