{
    Dependencies:
    - Addresses.txt
    - ArrayGetValueByIndex.txt
    - Detect_EXE_version.txt
}

:GetVehicleGxtKey
{
 Description: 
    Returns GXT key of vehicle ID defined within .ide file.
 Type: PROPERTY
  
 Parameters:
   Passed:
     0@ - vehicle ID    
 
 Example:
  0AB1: call_scm_func @GetVehicleGxtKey 1 vehicle_ID 400 gxt_key_to 1@ 2@ 
}
0AB1: call_scm_func @GetAddress_modelPtrs 0 store_offset 1@
0@ *= 4
005A: 1@ += 0@  // (int)
0A8D: 1@ = read_memory 1@ size 4 virtual_protect false      // Read CVehicleModelInfo object pointer

1@ += 50
0A8D: 2@ = read_memory 1@ size 4 virtual_protect false
1@ += 4
0A8D: 3@ = read_memory 1@ size 4 virtual_protect false

0AB2: ret 2 gxt_key 2@ 3@