Ola pessoal, eu ultimamente estive dando uma olhada na wiki e eu achei uma explicaзгo la sobre a funзгo Attach3DTextLabelToVehicle. A o meu problema й que quando eu crio a 3d textLabel ela nгo fica no veiculo ela sу fica no chгo eu gostaria que ficasse no veiculo, como faзo para deixa-la no veiculo? E outra duvida como faзo pra ir colocando 3dtext label em vбrios veнculos sem ter que ficar definindo?
|
//OnGameModeInit
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Moto Civil", 0xFF0000AA, 0.0,0.0,0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
vehicle_id = CreateVehicle(462,-1987.6145,144.4984,27.1067,98.4258,0,0, 3000);
pawn Код:
|
Attach3DTextLabelToVehicle(...., Var[playerid], 0.0, 0.0, 1.0);
//OnGameModeInit
vehicle_id = CreateVehicle(462,-1987.6145,144.4984,27.1067,98.4258,0,0, 3000);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Moto Civil", 0xFF0000AA, 0.0,0.0,0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
static vehicle_id;
vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
vehicle3Dtext[vehicle_id] = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[vehicle_id] , vehicle_id, 0.0, 0.0, 2.0);
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
//OnGameModeInit
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Moto Civil", 0xFF0000AA, 0.0,0.0,0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
vehicle_id = CreateVehicle(462,-1987.6145,144.4984,27.1067,98.4258,0,0, 3000);