Jump to content

Question about car


Redox

Recommended Posts

Hi, I have question. How can I do so: In function is condition eg:

car = getPlayerOccupiedVehicle ( source )
if car == (id vehicle) then

I try do this, but vehicle id is like this: 000000F6.

When I do this, it doesn't work:

car = getPlayerOccupiedVehicle ( source )         
if car == "000000F6" then

Link to comment

I want to do one car for police, but no policecar (eg police sultan) and only in this car can use key 'h'. I made function on key 'h' to flashing lights, and I want to put there "if car == id". Now you understand me? ;> I hope so

Link to comment
I want to do one car for police, but no policecar (eg police sultan) and only in this car can use key 'h'. I made function on key 'h' to flashing lights, and I want to put there "if car == id". Now you understand me? ;> I hope so

You want to compare model ID not an "ID" of a vehicle.

Use getElementModel and compare the returned value with model ID of Sultan (iirc it's 560).

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