The showui text is not working for me, im using cd_drawtextui I even changed it in config:
Citizen.CreateThread(function()
while true do
local wait = 1000
if IsPedInAnyVehicle(PlayerPedId(),false) then
local vehicle = GetVehiclePedIsIn(PlayerPedId())
local Plate = GetVehicleNumberPlateText(vehicle)
if GetPedInVehicleSeat(GetVehiclePedIsIn(PlayerPedId(), false), -1) == PlayerPedId() then
if Keys[Plate] ~= true then
wait = 2
if SearchedVeh[Plate] ~= true then
TriggerEvent(‘cd_drawtextui:ShowUI’, ‘show’, ‘[H] Hotwire | [Z] Search’)
else
TriggerEvent(‘cd_drawtextui:ShowUI’, ‘show’, ‘[H] Hotwire’)
end
struggling to get this working with server side
local entity = Citizen.InvokeNative(CREATE_AUTOMOBILE
Any tips?
local entity = Citizen.InvokeNative(`CREATE_AUTOMOBILE`, model, coords.x, coords.y, coords.z, heading, givekeys)
Wait(50)
local netId = NetworkGetNetworkIdFromEntity(entity)
local entityOwner = NetworkGetEntityOwner(entity)
-- Sometimes peds can spawn inside vehicles
local ped = GetPedInVehicleSeat(entity, -1)
if ped > 0 then
for i = -1, 6 do
ped = GetPedInVehicleSeat(entity, i)
local popType = GetEntityPopulationType(ped)
if popType <= 5 or popType >= 1 then
DeleteEntity(ped)
end
end
end
RegisterNetEvent('luke_garages:SetVehicleMods', function(entityOwner, netId, result, givekeys)
if givekeys then
exports['hsn-hotwire']:AddKeys(GetVehicleNumberPlateText(vehicle))
end
end)```