Police vehicle plates always LSPDXXXX when spawned from police garage. How to change?

image

I’m having troubles locating the file that defaults plates to say ‘LSPDXXXX’. Anyone know?

Hello, @CalvinCandie

In qb-policejob you can find the following path;
qb-policejob/client/job.lua then if you head over to line 138 you find the following line of code;
SetVehicleNumberPlateText(veh, Lang:t('info.police_plate')..tostring(math.random(1000, 9999)))
This part is responsible for changing the plate no + text you could for example change it to the following;

SetVehicleNumberPlateText(veh, "DEPT " .. tostring(math.random(100, 999))
SetVehicleNumberPlateText(veh, "DEPT" .. tostring(math.random(1000, 9999))

Depdning if you want 3 digets or 4 on your plate

Regards,
Serena

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.