Jump to content

wats wrong?


Beethoven

Recommended Posts

Posted

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

Posted

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

Posted (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 by Guest
Posted
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?

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