Hey, I am creating my first home made script (wich i will definatly share here once complete ) . However I’ve hit a bit of a problem.
I am trying to make sure the player is using a certain car. The code I am using for this is the next:
if GetVehiclePedIsUsing(GetPlayerPed(-1)) == ‘stretch’ then
dosomething()
end
I have tried numerous variations on this but can’t seem to get it to activate.
I am thinking theres an issue between the way the value comes back and what I am checking.
Not sure tho.
If someone could shed some light on this or give me an alternative to check for a specific car that would be great.