30.11.2011, 20:30
Fixed it, needed to get the vehicle id of the player then use it to check if their in the vehicle.
if(newstate == PLAYER_STATE_DRIVER)
{
if(truckm[1] || truckm[2] || truckm[3] || truckm[4] || truckm[5] || truckm[6])
{
ShowPlayerDialog(playerid,DIALOG_TRUCKMENU,DIALOG_STYLE_LIST,"Difficulties","Easy\nMedium\nHard.","Select","Close");
}
return 1;
}