mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Component id check
This commit is contained in:
+4
-3
@@ -49,9 +49,10 @@ function OpenMenu(submitCb, cancelCb, restrict)
|
||||
-- Insert elements
|
||||
for i=1, #_components, 1 do
|
||||
|
||||
local value = _components[i].value
|
||||
|
||||
if _components[i].componentId ~= nil then
|
||||
local value = _components[i].value
|
||||
local componentId = _components[i].componentId
|
||||
|
||||
if componentId == 0 then
|
||||
value = GetPedPropIndex(playerPed, _components[i].componentId)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user