Use print() To Check Values#
print() shows what your variables contain in the console:
print(vehicleData.model, vehicleData.name)
print('Model:', vehicleData.model, 'Name:', vehicleData.name)Helps you confirm if the data is correct.
Example While Buying A Vehicle#
Add a print() inside your callback to check info when buying a car:
print('Model:', vehicleData.model, 'Plate:', generatedPlate)This shows the model and plate to see if the code is working right.
Get Vehicle Info Quickly#
local model = GetDisplayNameFromVehicleModel(GetEntityModel(veh))
local plate = GetVehicleNumberPlateText(veh)Gets the vehicle model and plate easily.
Simple Tips#
Add
print()before/after big actions.Label your prints →
print('Plate:', plate)Test small parts one by one.
In short: use print() to watch what your script is doing it’s the fastest way to find and fix problems.



