feat(vehicle): lockpick & hotwire

This commit is contained in:
Andyyy7666
2023-08-27 01:28:29 +02:00
parent 57d6bbf85a
commit 74b35442c5
2 changed files with 124 additions and 0 deletions

View File

@@ -268,6 +268,15 @@ if Config.useInventoryForKeys then
return
end
player.notify({
RegisterNetEvent("ND_Vehicles:hotwire", function(netId)
local src = source
local ped = GetPlayerPed(src)
local playerVeh = GetVehiclePedIsIn(ped)
local veh = NetworkGetEntityFromNetworkId(netId)
if not playerVeh or playerVeh == 0 or playerVeh ~= veh then return end
local state = Entity(veh).state
state.hotwired = true
end)
title = "No signal",
description = "Vehicle to far away.",
type = "error",