Jump to content

Custom Car Names - SCRIPT HELP


flowz

Recommended Posts

I saw many Roleplay server's with custom car names and I made a script myself last time but because I had to reset my PC as it was slow I forgot all about it so I didn't save it onto my USB Drive. Any ideas of how I can make custom car names for a roleplay server ?

(( The last time I did it, I put a table into MySQL Database into the vehicles section and I added something into vehicle-system ))

Link to comment

I want something like this in LUA only not in XML

---- Server Side ----

local tagName = {  
vehicle id="411" name="Acura NSX", 
vehicle id="587" name="Audi R8", 
vehicle id="533" name="BMW 528 Cabrio", 
        vehicle id="426" name="BMW 750iL", 
        vehicle id="402" name="Chevrolet Camaro '92",  
        vehicle id="603" name="Chevrolet Chevelle SS '72",  
        vehicle id="429" name="Chevrolet Corvette C6", 
        vehicle id="542" name="Dodge Challenger R/T '70", 
        vehicle id="451" name="Ferrari Enzo", 
        vehicle id="415" name="Ferrari Testarossa", 
        vehicle id="565" name="Honda Civic", 
        vehicle id="480" name="Honda S2000", 
        vehicle id="541" name="Koenigsegg CCX", 
        vehicle id="502" name="Lamborghini Miura", 
        vehicle id="496" name="Lancia Delta HF", 
        vehicle id="475" name="Mercury Cyclone '71", 
        vehicle id="506" name="Mitsubishi 3000GT", 
        vehicle id="560" name="Mitsubishi Lancer EVO IX MR", 
        vehicle id="602" name="Nissan 350Z", 
        vehicle id="494" name="Nissan GT-R", 
        vehicle id="526" name="Nissan Silvia S-13", 
        vehicle id="562" name="Nissan Skyline R-34", 
        vehicle id="477" name="Mazda RX-7", 
        vehicle id="503" name="Mazda RX-7 Veilside", 
        vehicle id="549" name="Plymouth Hemi Cuda 440 '70", 
        vehicle id="468" name="Sanchez (GTA IV)", 
        vehicle id="558" name="Toyota Corolla AE-86", 
        vehicle id="559" name="Toyota Supra", 
        vehicle id="589" name="Volkswagen Golf GTI", 
        vehicle id="520" name="F-18 Jet", 
        vehicle id="539" name="Half-Life 2 boat", 
                vehicle id="497" name="Police Huey" 
} 

And the other code in Server Side is

  
outputChatBox("(( This " .. tagName .. " is a civilian vehicle. ))", thePlayer, 255, 195, 14) 
  

(( NOTE : ONLY SOME OF THE CODE ))

So when the player enters the car it display it in a outputChatBox.

Any ideas? Please help I really need.

Link to comment

Setting custom vehicle name is easy, just define a variable for them. Outputting it is easy too just check the vehicle id if it equals to the 31(infernos as far as i remember)output a message as "You enter in to the mini cooper" as a example but for me the most hardest part is deleting the original text from screen.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...