How get jbeam and pc/config name for default vehicle

Discussion in 'Programming' started by Riccarr, May 25, 2025 at 9:31 PM.

  1. Riccarr

    Riccarr
    Expand Collapse

    Joined:
    Jul 28, 2024
    Messages:
    20
    Hi ... I'm trying to determine both the jbeam name and the config_key on the players "default" vehicle.

    I already get these values this way ...

    local currentJbeam = vehicle.jbeam
    local vehicleDetails = core_vehicles.getVehicleDetails(vid)
    local pcName = vehicleDetails.current.config_key

    This works, but not for the default vehicle. For example if current (not default) vehicle was the MD60 Flatbed, then jbeam/config values would ... "md_series" and "md_60_flatbed". But for default vehicle the config_name shows as "default".
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice