RegisterCommand('radio', function(source, args, raw)
local ped = GetPlayerPed(-1)
local veh = GetVehiclePedIsUsing(ped)
if IsPedInVehicle(ped, veh, false) then
OpenhifiMenu()
else
ESX.ShowNotification("You're not in a vehicle")
end
end)
But this is not moving with the players coords. Can somebody fix this?
But this is not moving with the players coords. Can somebody fix this?