Little help __ not hard ;p
#1

PHP код:
/* ================================================================================================================================================ */
    //Infernus 3D
    
strcat(string"{F81414}Infernus\n");
    
strcat(string"{FFFFFF}Get in the car to buy it");
    
DealerLabel[DealerInfernus] = Create3DTextLabel(stringCOL_WHITE1799.1167,-1487.9091,-12.0296300);
    
GetVehiclePos(DealerInfernusVehXVehYVehZ);
    
Attach3DTextLabelToVehicle(DealerLabel[DealerInfernus], DealerInfernusVehXVehYVehZ);
/* ================================================================================================================================================ */
    //Turismo 3D
    
strcat(string"{F81414}Turismo\n");
    
strcat(string"{FFFFFF}Get in the car to buy it");
    
DealerLabel[DealerTurismo] = Create3DTextLabel(stringCOL_WHITE1794.2654,-1486.6549,-12.0054300);
    
GetVehiclePos(DealerTurismoVehXVehYVehZ);
    
Attach3DTextLabelToVehicle(DealerLabel[DealerTurismo], DealerTurismoVehXVehYVehZ); 
Are those codes right ? it gives me no errors but when i get ig it doesn't work
Reply
#2

Take a look at the example of the Wiki: https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Reply
#3

I made it exactly like the wiki and still, not working.
Reply
#4

Do not use VehX, VehY and VehZ when attaching as they are offsets. Just use '0.0' for all of them instead and it should be working fine.
Reply
#5

Show us where the DealerInfernus is created... (CreateVehicle, or AddStaticVehicle, or similiar.)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)