From 583eefa4afc1ff4df6748112dd866f9c63660a23 Mon Sep 17 00:00:00 2001 From: Ilias Rbayti <63159154+Kenshiin13@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:55:08 +0100 Subject: [PATCH] fix(es_extended/server/functions): index vehicles by plate --- [core]/es_extended/server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index 05539f6dc..ef865061c 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -405,7 +405,7 @@ function ESX.CreateExtendedVehicle(plate, entity, model, props, owner) props = props, owner = owner, } - Core.vehicles[netId] = vehicle + Core.vehicles[plate] = vehicle local obj = table.clone(Core.vehicleClass) obj.plate = plate