1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

HELP WITH 3D CAR DEALER

Discussion in 'DarkRP Modding Questions & Help' started by AstroGaming Dylan, Sep 26, 2014.

  1. Hi I am trying to make a DarkRP server and I am almost done EVERYTHING and the last thing I need to do it the Car Dealer and I could easily press E on him and access cars but the problem is that I can no longer Press E on him at all also even if I delete it and install it again it still doesnt work and yes it is the latest version and yes I have tried reseting it etc nothing is working here is the error and the codes at the bottom.

    Picture of Error: http://tinypic.com/r/1yww21/8


    Code for the Customizer:


    Code (Text):
    D3DCarConfig = {}

    D3DCarConfig.DarkRPIs2_5_0 = false
    -- if u using DarkRP 2.5.0 set this to ' true '
    -- if not, Set this to 'false'

    D3DCarConfig.PlayerMaxCarAmount = 1 -- if you break this, your car will be removed and saved into inventory
    D3DCarConfig.Car = {}

        //===========================================
        local TB2Insert = {}
            TB2Insert.VehicleName = "Jeep" -- This is unique name.
            TB2Insert.CarName = "Jeep!" -- The car name. will be displayed at shop
            TB2Insert.CarPrice = 100 -- price
            TB2Insert.CarRefund = 100 -- refund
            TB2Insert.MaxAmount = 1 -- max amount of this car.
            TB2Insert.Description = [[Normal Jeep
                                    lol ddddddddddddddddddddddddddddddddddddddddddddddddddddddd]]
        table.insert(D3DCarConfig.Car,TB2Insert)
        //===========================================
       
       
       
        local TB2Insert = {}
            TB2Insert.VehicleName = "sparktdm"
            TB2Insert.CarName = "TDM - Spark"
            TB2Insert.CarPrice = 100
            TB2Insert.CarRefund = 100
            TB2Insert.Description = "Basic Car."
        table.insert(D3DCarConfig.Car,TB2Insert)
       
        local TB2Insert = {}
            TB2Insert.VehicleName = "reventonrtdm"
            TB2Insert.CarName = "TDM - Reventon RoadSter"
            TB2Insert.CarPrice = 100
            TB2Insert.CarRefund = 100
            TB2Insert.MaxAmount = 1
            TB2Insert.AvaliableGroup = {"superadmin","admin"}
        --    TB2Insert.AvaliableTeam = {"Civil Protection","Mob boss"}
            TB2Insert.Description = "Basic Car."
        table.insert(D3DCarConfig.Car,TB2Insert)
       
       
    if CLIENT then
        surface.CreateFont( "CenterCarName",{
            font = "Sansation",
            size = 40,
            weight = 700,
            outline = true
        })

        surface.CreateFont( "CenterCarPrice",{
            font = "Sansation",
            size = 25,
            weight = 700,
            outline = true
        })

        surface.CreateFont( "SansationOut_S20",{
            font = "Sansation",
            size = 20,
            weight = 700,
            outline = true
        })
       
        surface.CreateFont( "SansationOut_S30",{
            font = "Sansation",
            size = 30,
            weight = 700,
            outline = true
        })
       
    end
     
    PLEASE HELP
     
  2. Cake

    Cake Active Member

    From the look of the error, it looks like you have a broken table somewhere.
     
  3. Like where though?
     
  4. Cake

    Cake Active Member

    I'm not sure but it may not even be in this file... Did this happen before or after you changed this?
     
  5. Aidan Roberts

    Aidan Roberts New Member

    Dude, im having the same problem with no luck fixing it. How did you do it?
     
  6. JoeGamingAxe

    JoeGamingAxe Member

    im getting an error saying that self:SelectCar(1) is nil
     

Share This Page