View Single Post
Old 09/12/2019, 05:03 PM   #3
ImTobi
Big Clucker
 
ImTobi's Avatar
 
Join Date: Jun 2017
Posts: 144
Reputation: 3
Default Re: Help with vehicleid

Quote:
Originally Posted by NaS View Post
Instead of putting the second message (and return) into the loop, you must move it outside of the loop, otherwise it will execute at the first iteration where the player is not in the correct truck (when you have for example 10 trucks, this might be the case for the first 9 iterations - this is why only the first truck works).

So only if the loop has finished completely and no truck was the one the player is driving, it should send the message saying the player isn't in any job truck.
can you give me an example?
ImTobi is offline   Reply With Quote