3dtextlabel car plate Help please!!
#1

Hello.. anybody can help me, trying to figure out how to add the / v plate 3xtextlabel, that system I / plate and did not know what to do. I have this DialogResponse.

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==DIALOG_PLATE)
{
if(response)
{
new Float,Float:y,Float:z,Float:ang;
SetVehicleNumberPlate(GetPlayerVehicleID(playerid) , inputtext);
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang) ;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
SetVehicleZAngle(GetPlayerVehicleID(playerid),ang) ;
PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), 0);
}
}
return 1;
}
Reply
#2

Why do you want to create a 3D text label for the plate instead of just changing the plate number itself? I think the 3D text label for a plate would look weird because the text rotates with the camera.
Reply
#3

what errors are you getting? what is your problem
Reply
#4

I get no error but I have no idea how to change that instead of text appear on the plate, to appear .. top of car.i t rotate but well apear on top soo is no problem... i see this one some server's and i like the idea. and i dont know haw to do.

this is the cmd

dcmd_vehicleplate(playerid, params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && PTP(5.0,playerid,1058.1322,-916.3584,42.6642))
{
new Float,Float:y,Float:z,Float:ang;
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang) ;
//ShowPlayerDialog(playerid,117492,DIALOG_STYLE_INPU T,"{EE7777}Numarul Masinii","{00CC66}Scrie numarul masinii mai jos.","Yes","Cancel");
ShowPlayerDialog(playerid,DIALOG_PLATE,DIALOG_STYL E_INPUT,"{EE7777}Numarul Masinii","{00CC66}Scrie numarul masinii mai jos.","Yes","Cancel");
return 1;
}
else
{
SCM(playerid,COLOR_2RED,"Nu esti la agentia de inmatriculari,sau nu esti soferul unei masini!");
return 1;
}
}
Reply
#5

https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle

ok..?
Reply
#6

I tried but I failed, that's why I opened this thread ,
i tried this but is not whorking no error nothing apear on top... soo pleace help ? this is frome a fs



i did like this and i recive 1 error error 035: argument type mismatch (argument 1)

on this vehicle3Dtext[ vehicleid ] = Create3DTextLabel( (playerid), inputtext, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==DIALOG_PLATE)
{
if(response)
{
new Float,Float:y,Float:z,Float:ang;
SetVehicleNumberPlate(GetPlayerVehicleID(playerid) , inputtext);
vehicle3Dtext[ vehicleid ] = Create3DTextLabel( (playerid), inputtext, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicleid ] ,vehicleid, 0.0, 0.0, 2.0);
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang) ;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
SetVehicleZAngle(GetPlayerVehicleID(playerid),ang) ;
PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), 0);
}
}
return 1;
Reply
#7

vehicle3Dtext[ vehicleid ] = Create3DTextLabel( inputtext, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );


u dont need playerid
Reply
#8

i fix but haw id i restart the server , the text is not saving
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)