1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.32 Bug Reporting thread
    Solutions and more information may already be available.

Get player vehicle and config [SOLVED]

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by jojos38, Jul 6, 2017.

  1. jojos38

    jojos38
    Expand Collapse

    Joined:
    Oct 22, 2013
    Messages:
    1,059
    Thank you for you answer, but how i pass this value in the vlua ? Because i need this value in vlua
    --- Post updated ---
    PTN J'AI REUSSI !
    I SUCCED !!!!! FINNALYYYY (2 hours i'm trying all possible code on the earth)

    obj:queueGameEngineLua("be:getPlayerVehicle(0):queueLuaCommand('drivingSounds.vehicleConfig = (\"'..be:getPlayerVehicle(0):getField('partConfig', '')..'\")')")

    print(drivingSounds.vehicleConfig)
    --- Post updated ---
    I don't event know what the command mean but i think it's this:

    Code:
            obj:queueGameEngineLua("                                                --(Ge lua) Sending command to Ge - Lua
            
                be:getPlayerVehicle(0):queueLuaCommand('                            --(vlua) This command send a command in vlua
            
                    drivingSounds.vehicleConfig = (\"'                              --(vlua) That ask drivingSounds.vehicleConfig =
                    
                        ..be:getPlayerVehicle(0):getField('partConfig', '')..    --(Ge Lua) Set the drivingSounds.vehicleConfig to the vehicle .PC
                        
                    '\")
                    
                ')
                
            ")
     
  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