Jump to content

Whats wrong with my script


emreb

Recommended Posts

As the title says, I have got problems with my script. Can someone tell me whats wrong?

  
  
    function VehicleFixer (thePlayer) 
            -- local veh = getPedOccupiedVehicle(thePlayer) 
            local vehiclepos = getPedOccupiedVehicle() 
            local x, y, z = getElementPosition ( vehiclepos ) 
            bool respawnVehicle ( vehicle vehiclepos ) 
    end 
    addCommandHandler("fix", VehicleFixer) 
  
  

Link to comment
-- local veh = getPedOccupiedVehicle(thePlayer) 
            local vehiclepos = getPedOccupiedVehicle() 

The second code, look what is different and that is wrong.

Also:

bool respawnVehicle ( vehicle, vehiclepos ) 

Missed ',' and vehicle is not defined (in this script) + You can't give positions to respawnVehicle. Click on the code to see the wiki and read the first 3 sentences there.

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