Jump to content

MightyAnimals

Members
  • Posts

    46
  • Joined

  • Last visited

Posts posted by MightyAnimals

  1. That's not what I ment. What I ment is the for sale icon that shows when the interior is not owned. Those icons only work in ls sf and lv. In the off-map city map i got those icons do not show.

  2. Hi, I've got a map which is located far away from LS, It's out of the map to be more precisely. So when I make an interior, it only shows me the name and owner, the pickup doesn't show up, any way to fix that?

  3. I made an SQL column that shows the Carname, only when I enter this in my script

    outputChatBox("(( This " ..getElementData(source, "vehName").. " belongs to " .. ownerName .. ". ))", thePlayer, 255, 195, 14) 
    

    It doesn't show the output, sql named vehName

  4. Uh, It worked for a moment. When I place more vehicles It only shows on 1 or doesn't show at all.

    CustomVehicleNames = {[470] = "1993 Hummer H1"}  -- Fill with vehicle IDs and custom names 
    CustomVehicleNames = {[411] = "1992 Acura NSX"} 
    

    Only shows ID 411 470 doesn't show.

  5. Hey!

    After I got some help with my last resource, I'm now doing stuff with the carshop system>

    My problem is, I want to let the custom carnames show in the hud, instead of the standard MTA Model, I've tried multiple functions, neither did any of them work.

    Here's my code

    localPlayer = getLocalPlayer() 
    function carshop_showInfo(carPrice, taxPrice) 
         
        local isOverlayDisabled = getElementData(localPlayer, "hud:isOverlayDisabled") 
        if isOverlayDisabled then 
            outputChatBox("") 
            outputChatBox("As you walk by the vehicle, you notice a card in the sidewindow. It reads the following:") 
            --outputChatBox(" --------------------------------------") 
            outputChatBox("| "..getVehicleNameFromModel( getElementModel( source ) ) ) 
            outputChatBox("| Now available for $"..exports.global:formatMoney(carPrice).."!" ) 
            outputChatBox("| Tax costs: $"..tostring(taxPrice) ) 
            --outputChatBox(" --------------------------------------") 
            outputChatBox("Press F or Enter to buy this vehicle") 
        else 
            local content = {} 
            table.insert(content, {"Car Dealership - Paper Sheet", false, false, false, false, false, false, "title"} ) 
            table.insert(content, {" " } ) 
            table.insert(content, {"   - MTA Model: "..getVehicleNameFromModel( getElementModel( source ) ) } ) 
            table.insert(content, {"   - Custom Model:"}) 
            table.insert(content, {"   -  " ..getVehicleNameFromModel( getElementModel( source ) ) } ) -- Ment to be used for custom carnames, doesn't work yet. 
            table.insert(content, {"   - Price: $"..exports.global:formatMoney(carPrice) } ) 
            table.insert(content, {"   - Tax: $"..exports.global:formatMoney(taxPrice) } ) 
            table.insert(content, {"Press 'F' or 'Enter' to purchase!" } ) 
            exports.hud:sendTopRightNotification( content, localPlayer, 240) 
        end 
    end 
    addEvent("carshop:showInfo", true) 
    addEventHandler("carshop:showInfo", getRootElement(), carshop_showInfo) 
    

  6. The carnames, I saved those in a server sided script.

    That's what I use to let the carname show when I enter the car *Thanks to MrTasty*

    .. tostring(carname[getElementModel(source)][1]) .. 
    

×
×
  • Create New...