roobr e15503e04b Add in Shared function for Trimming whitespace in plates
This PR is the foundation for Trimming plates in all resources that reference vehicle plates, this will allow plates with less than 8 Characters to work with QB resources (mechanic and garage mainly), and not return white spaces. For example, the plate "TEST" would return "  TEST  " so when trying to put it back into the garage or add mods to it, it would fail.

For example in qb-garages: TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(veh)) would return "TEST instead of "  TEST  " when using the native.

What I did was replace GetVehicleNumberPlateText( with QBCore.Functions.GetPlate( in all resources that contain the QBCore object.
2021-11-06 00:03:27 +11:00
2021-09-24 23:57:49 -05:00
2021-10-22 00:14:18 -04:00
2021-11-02 23:16:52 -06:00
2021-10-26 21:01:23 +02:00
2021-10-26 19:58:13 -06:00
⚠️ Major Update ⚠️
2021-09-24 22:46:20 -06:00
2021-09-14 23:20:11 +02:00
2021-11-03 17:21:12 +11:00
2021-10-17 11:14:37 +03:00
2021-11-02 09:19:35 +02:00

qb-core

Official QBCore Documentation

License

QBCore Framework
Copyright (C) 2021 Joshua Eger

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>
S
Description
FiveM RP Framework Core 💪
Readme GPL-3.0 4.2 MiB
Languages
Lua 98.2%
JavaScript 1.1%
CSS 0.6%
HTML 0.1%