char* GetVehicleOnwerName(int player)
{
int val = DECOR_GET_INT(GET_VEHICLE_PED_IS_USING(GET_PLAYER_PED(player)), "Player_Vehicle");
if(IS_PED_IN_ANY_VEHICLE(GET_PLAYER_PED(player), 0))
{
for(int i = 0; i< 18; i++)
{
int iVar0 = INT_TO_PLAYERINDEX(i);
if(val == GET_HASH_KEY(GET_PLAYER_NAME(iVar0)) || val == NETWORK_HASH_FROM_PLAYER_HANDLE(iVar0))
{
if(GET_HASH_KEY(GET_PLAYER_NAME(i)) == GET_HASH_KEY("**Invalid**")) return "None";
else
return GET_PLAYER_NAME(i);
}
}
}
return "";
}
{
int val = DECOR_GET_INT(GET_VEHICLE_PED_IS_USING(GET_PLAYER_PED(player)), "Player_Vehicle");
if(IS_PED_IN_ANY_VEHICLE(GET_PLAYER_PED(player), 0))
{
for(int i = 0; i< 18; i++)
{
int iVar0 = INT_TO_PLAYERINDEX(i);
if(val == GET_HASH_KEY(GET_PLAYER_NAME(iVar0)) || val == NETWORK_HASH_FROM_PLAYER_HANDLE(iVar0))
{
if(GET_HASH_KEY(GET_PLAYER_NAME(i)) == GET_HASH_KEY("**Invalid**")) return "None";
else
return GET_PLAYER_NAME(i);
}
}
}
return "";
}