SA-MP Forums Archive
Infernus - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Infernus (/showthread.php?tid=513434)



Infernus - saikumar - 16.05.2014

How to use this code on every infernus in samp

Code:
stock LSPDizeInfernus(vehicleid)
{
    new alspdo = CreateObject(2286,-0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    SetObjectMaterial(alspdo, 1, 0, "none", "none");
    new lspdsirena = CreateObject(18646,0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    new lspdo1 = CreateObject(19280, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo3 = CreateObject(19280, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo4 = CreateObject(19280, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    new lspdo5 = CreateObject(19280, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951); 
    SetObjectMaterial(lspdo1, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo3, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo4, 1, 18646, "matcolours", "blue");
    SetObjectMaterial(lspdo5, 1, 18646, "matcolours", "blue");
    new pcarex = CreateObject(1144,0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000); //object(bntr_b_sq) (1)
    new pcarex1 = CreateObject(1144,-0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793); 
    AttachObjectToVehicle(pcarex, vehicleid, 0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000);
    AttachObjectToVehicle(pcarex1, vehicleid, -0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    SetObjectMaterialText(alspdo, " POLICE", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 75, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(alspdo, vehicleid, -0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdsirena, vehicleid, 0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdo1, vehicleid, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo3, vehicleid, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo4, vehicleid, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    AttachObjectToVehicle(lspdo5, vehicleid, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951); 
    new hsiu_text = CreateObject(2659,-1.1012001,0.0907000,-0.1102000,0.0000000,0.0000000,271.5000000); 
    new hsiu_text2 = CreateObject(2659,1.1012998,0.0907000,-0.1102000,0.0000000,0.0000000,88.7496338);
    SetObjectMaterialText(hsiu_text, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    SetObjectMaterialText(hsiu_text2, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(hsiu_text, vehicleid, -1.1012001,0.0907000,-0.150000,0.0000000,0.0000000,271.5000000); 
    AttachObjectToVehicle(hsiu_text2, vehicleid, 1.1013298,0.0907000,-0.150000,0.0000000,0.0000000,88.7496338);
}
Thanks in advance for help


Re: Infernus - saikumar - 16.05.2014

tried of this but not working

pawn Code:
public OnVehicleSpawn(vehicleid)
{
    if(GetVehicleModel(vehicleid) == 411)
    {
        LSPDizeInfernus(vehicleid);
    }
    return 1;
}
stock LSPDizeInfernus(vehicleid)
{
    new alspdo = CreateObject(2286,-0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    SetObjectMaterial(alspdo, 1, 0, "none", "none");
    new lspdsirena = CreateObject(18646,0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    new lspdo1 = CreateObject(19280, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo3 = CreateObject(19280, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo4 = CreateObject(19280, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    new lspdo5 = CreateObject(19280, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    SetObjectMaterial(lspdo1, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo3, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo4, 1, 18646, "matcolours", "blue");
    SetObjectMaterial(lspdo5, 1, 18646, "matcolours", "blue");
    new pcarex = CreateObject(1144,0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000); //object(bntr_b_sq) (1)
    new pcarex1 = CreateObject(1144,-0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    AttachObjectToVehicle(pcarex, vehicleid, 0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000);
    AttachObjectToVehicle(pcarex1, vehicleid, -0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    SetObjectMaterialText(alspdo, " POLICE", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 75, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(alspdo, vehicleid, -0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdsirena, vehicleid, 0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdo1, vehicleid, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo3, vehicleid, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo4, vehicleid, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    AttachObjectToVehicle(lspdo5, vehicleid, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    new hsiu_text = CreateObject(2659,-1.1012001,0.0907000,-0.1102000,0.0000000,0.0000000,271.5000000);
    new hsiu_text2 = CreateObject(2659,1.1012998,0.0907000,-0.1102000,0.0000000,0.0000000,88.7496338);
    SetObjectMaterialText(hsiu_text, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    SetObjectMaterialText(hsiu_text2, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(hsiu_text, vehicleid, -1.1012001,0.0907000,-0.150000,0.0000000,0.0000000,271.5000000);
    AttachObjectToVehicle(hsiu_text2, vehicleid, 1.1013298,0.0907000,-0.150000,0.0000000,0.0000000,88.7496338);
}



Re: Infernus - saikumar - 16.05.2014

even this is not working

pawn Code:
public OnGameModeInit()
{
for(new vehicle =0; vehicle<MAX_VEHICLES; vehicle++)
{
    if(GetVehicleModel(vehicle) == 411)
    {
        LSPDizeInfernus(vehicle);
    }
}
return 1;
}
stock LSPDizeInfernus(vehicleid)
{
    new alspdo = CreateObject(2286,-0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    SetObjectMaterial(alspdo, 1, 0, "none", "none");
    new lspdsirena = CreateObject(18646,0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    new lspdo1 = CreateObject(19280, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo3 = CreateObject(19280, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo4 = CreateObject(19280, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    new lspdo5 = CreateObject(19280, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    SetObjectMaterial(lspdo1, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo3, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo4, 1, 18646, "matcolours", "blue");
    SetObjectMaterial(lspdo5, 1, 18646, "matcolours", "blue");
    new pcarex = CreateObject(1144,0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000); //object(bntr_b_sq) (1)
    new pcarex1 = CreateObject(1144,-0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    AttachObjectToVehicle(pcarex, vehicleid, 0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000);
    AttachObjectToVehicle(pcarex1, vehicleid, -0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    SetObjectMaterialText(alspdo, " POLICE", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 75, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(alspdo, vehicleid, -0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdsirena, vehicleid, 0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdo1, vehicleid, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo3, vehicleid, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo4, vehicleid, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    AttachObjectToVehicle(lspdo5, vehicleid, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    new hsiu_text = CreateObject(2659,-1.1012001,0.0907000,-0.1102000,0.0000000,0.0000000,271.5000000);
    new hsiu_text2 = CreateObject(2659,1.1012998,0.0907000,-0.1102000,0.0000000,0.0000000,88.7496338);
    SetObjectMaterialText(hsiu_text, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    SetObjectMaterialText(hsiu_text2, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(hsiu_text, vehicleid, -1.1012001,0.0907000,-0.150000,0.0000000,0.0000000,271.5000000);
    AttachObjectToVehicle(hsiu_text2, vehicleid, 1.1013298,0.0907000,-0.150000,0.0000000,0.0000000,88.7496338);
}



Re: Infernus - saikumar - 16.05.2014

nono....i saw some people using same stock.


Re: Infernus - saikumar - 16.05.2014

up.
please help


Re : Infernus - Ramoboss - 16.05.2014

pawn Code:
OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_IN_FOOT && newstate == PLAYER_DRIVE)
    {
        if(GetVehicleModel(vehicleid) == 411)
        {
              LSPDizeInfernus(vehicle);
        }
     }
     return 1;
}
try this


Re: Infernus - saikumar - 16.05.2014

Is there anyother way
i am sure that the stock is not wrong coz i seen it in many server.

Please Help me somebody


Re : Infernus - Ramoboss - 16.05.2014

did you tried my code ?


Re: Re : Infernus - saikumar - 16.05.2014

Quote:
Originally Posted by Ramoboss
View Post
did you tried my code ?
it is attaching the objects over and over


please help me its urgent..

+Rep For all who solves this


Re : Infernus - Ramoboss - 16.05.2014

do

new IsAttached[MAX_VEHICLES];

and then in the code that i gived to you, do that :

pawn Код:
if(oldstate == PLAYER_IN_FOOT && newstate == PLAYER_DRIVE)
    {
        if(GetVehicleModel(vehicleid) == 411)
        {
              if(IsAttached(vehicleid) == 0)
              {
                  LSPDizeInfernus(vehicle);
                  IsAttached[vehicleid] =1;
               }
        }
     }
if(oldstate == PLAYER_DRIVE && newstate == PLAYER_IN_FOOT)
    {
        if(GetVehicleModel(vehicleid) == 411)
        {
              if(IsAttached(vehicleid) == 1)
              {
                  LSPDizeInfernus(vehicle);
                  IsAttached[vehicleid] =0;
               }
        }
     }



Re: Infernus - saikumar - 17.05.2014

Errors with the code.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_IN_FOOT && newstate == PLAYER_DRIVE)
        {
            if(GetVehicleModel(vehicleid) == 411)
            {
                if(IsAttached(vehicleid) == 0)
                {
                  LSPDizeInfernus(vehicle);
                  IsAttached[vehicleid] =1;
                }
            }
        }
    if(oldstate == PLAYER_DRIVE && newstate == PLAYER_IN_FOOT)
        {
            if(GetVehicleModel(vehicleid) == 411)
            {
                if(IsAttached(vehicleid) == 1)
                {
                  LSPDizeInfernus(vehicle);
                  IsAttached[vehicleid] =0;
                }
            }
        }
return 1;
}
     
stock LSPDizeInfernus(vehicleid)
{
    new alspdo = CreateObject(2286,-0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    SetObjectMaterial(alspdo, 1, 0, "none", "none");
    new lspdsirena = CreateObject(18646,0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    new lspdo1 = CreateObject(19280, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo3 = CreateObject(19280, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo4 = CreateObject(19280, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    new lspdo5 = CreateObject(19280, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    SetObjectMaterial(lspdo1, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo3, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo4, 1, 18646, "matcolours", "blue");
    SetObjectMaterial(lspdo5, 1, 18646, "matcolours", "blue");
    new pcarex = CreateObject(1144,0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000); //object(bntr_b_sq) (1)
    new pcarex1 = CreateObject(1144,-0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    AttachObjectToVehicle(pcarex, vehicleid, 0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000);
    AttachObjectToVehicle(pcarex1, vehicleid, -0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    SetObjectMaterialText(alspdo, " POLICE", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 75, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(alspdo, vehicleid, -0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdsirena, vehicleid, 0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdo1, vehicleid, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo3, vehicleid, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo4, vehicleid, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    AttachObjectToVehicle(lspdo5, vehicleid, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    new hsiu_text = CreateObject(2659,-1.1012001,0.0907000,-0.1102000,0.0000000,0.0000000,271.5000000);
    new hsiu_text2 = CreateObject(2659,1.1012998,0.0907000,-0.1102000,0.0000000,0.0000000,88.7496338);
    SetObjectMaterialText(hsiu_text, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    SetObjectMaterialText(hsiu_text2, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(hsiu_text, vehicleid, -1.1012001,0.0907000,-0.150000,0.0000000,0.0000000,271.5000000);
    AttachObjectToVehicle(hsiu_text2, vehicleid, 1.1013298,0.0907000,-0.150000,0.0000000,0.0000000,88.7496338);
}
but getting this errors

Код:
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(235) : error 017: undefined symbol "PLAYER_IN_FOOT"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(237) : error 017: undefined symbol "vehicleid"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(239) : error 017: undefined symbol "IsAttached"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(241) : error 017: undefined symbol "vehicle"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(242) : error 017: undefined symbol "IsAttached"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(242) : error 017: undefined symbol "vehicleid"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(242) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(242) : fatal error 107: too many error messages on one line


Somebody Please Help...


i neeed it


Re: Infernus - saikumar - 17.05.2014

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
But i told you, i wont support that.

pawn Код:
new IsAttached[MAX_VEHICLES];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle;
        vehicle = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(vehicle) == 411)
        {
            if(IsAttached(vehicle) == 0)
            {
                  LSPDizeInfernus(vehicle);
                  IsAttached[vehicle] =1;
            }
        }
    }
    return 1;
}

Код:
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(227) : error 012: invalid function call, not a valid address
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(227) : warning 215: expression has no effect
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(227) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(227) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SAIKUM~1\Desktop\lobby.pwn(227) : fatal error 107: too many error messages on one line



Re: Infernus - [ABK]Antonio - 17.05.2014

Quote:
Originally Posted by saikumar
View Post
even this is not working

pawn Code:
public OnGameModeInit()
{
for(new vehicle =0; vehicle<MAX_VEHICLES; vehicle++)
{
    if(GetVehicleModel(vehicle) == 411)
    {
        LSPDizeInfernus(vehicle);
    }
}
return 1;
}
stock LSPDizeInfernus(vehicleid)
{
    new alspdo = CreateObject(2286,-0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    SetObjectMaterial(alspdo, 1, 0, "none", "none");
    new lspdsirena = CreateObject(18646,0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    new lspdo1 = CreateObject(19280, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo3 = CreateObject(19280, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    new lspdo4 = CreateObject(19280, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    new lspdo5 = CreateObject(19280, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    SetObjectMaterial(lspdo1, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo3, 1, 18646, "matcolours", "red");
    SetObjectMaterial(lspdo4, 1, 18646, "matcolours", "blue");
    SetObjectMaterial(lspdo5, 1, 18646, "matcolours", "blue");
    new pcarex = CreateObject(1144,0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000); //object(bntr_b_sq) (1)
    new pcarex1 = CreateObject(1144,-0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    AttachObjectToVehicle(pcarex, vehicleid, 0.8036000,2.2923000,0.0672000,344.0073853,0.0000000,5.0000000);
    AttachObjectToVehicle(pcarex1, vehicleid, -0.7973000,2.2920001,0.0672000,344.0039062,0.0000000,354.9987793);
    SetObjectMaterialText(alspdo, " POLICE", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 75, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(alspdo, vehicleid, -0.0972000,-1.9730999,0.2444000,275.5001526,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdsirena, vehicleid, 0.4676000,0.3301000,0.7125000,356.0000000,0.0000000,0.0000000);
    AttachObjectToVehicle(lspdo1, vehicleid, -0.5947266,2.6767578,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo3, vehicleid, -0.7447000,2.6440001,-0.4871000,341.4990234,0.0000000,12.7496338);
    AttachObjectToVehicle(lspdo4, vehicleid, 0.6053000,2.6768000,-0.4871000,341.4990234,0.0000000,346.7496338);
    AttachObjectToVehicle(lspdo5, vehicleid, 0.7545000,2.6418002,-0.4871000,341.4990234,0.0000000,346.7449951);
    new hsiu_text = CreateObject(2659,-1.1012001,0.0907000,-0.1102000,0.0000000,0.0000000,271.5000000);
    new hsiu_text2 = CreateObject(2659,1.1012998,0.0907000,-0.1102000,0.0000000,0.0000000,88.7496338);
    SetObjectMaterialText(hsiu_text, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    SetObjectMaterialText(hsiu_text2, " LSPD", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 74, 1, 0xFFFFFFFF, 0, 1);
    AttachObjectToVehicle(hsiu_text, vehicleid, -1.1012001,0.0907000,-0.150000,0.0000000,0.0000000,271.5000000);
    AttachObjectToVehicle(hsiu_text2, vehicleid, 1.1013298,0.0907000,-0.150000,0.0000000,0.0000000,88.7496338);
}
Is that before or after you create the vehicles?