Hey I modified es_garages to allow boat storage in ādocksā and I was wondering if you could help me out. so for es_garages the line that is getClosestvehicle, which works for cars and motorcycles but I cant get it to work with boats I was wondering if you could help me with this?
AddEventHandler('garages:StoreVehicle', function(vehicle, plate)
local car = GetHashKey(vehicle)
local plate = plate
Citizen.CreateThread(function()
Citizen.Wait(3000)
local caissei = GetClosestVehicle(currentPos.outside[1], currentPos.outside[2], currentPos.outside[3], 10.000, 0, 70)
SetEntityAsMissionEntity(caissei, true, true)
local platecaissei = GetVehicleNumberPlateText(caissei)
if DoesEntityExist(caissei) then
if plate ~= platecaissei then
drawNotification("This isn't your boat.")
else
Citizen.InvokeNative(0xB736A491E64A32CF,Citizen.PointerValueIntInitialized(car))
Citizen.InvokeNative(0xEA386986E786A54F, Citizen.PointerValueIntInitialized(caissei))
drawNotification("The boat has been docked in.")
TriggerServerEvent('garages:SetVehIn', plate)
TriggerServerEvent("garages:CheckGarageForVeh")
end
else
drawNotification("No boat currently present.")
end
end)
end
I tried changing the 70 at GetClosestVehicle but nothing works for boats
We wonna use this script to find some special cars and some muskles are on radr others not. ist there a option for example to use havok and see ALL vehicles who gamers use?
Hey!
Really love this script amazing job!
As well as I was wondering wether you could make it so it registers AI Cars/Boats and make it be able to be used in police vehicles?
This is because my head admin thought of a good idea of making it so that police could have it in their cars and use it because cars have gps on them and use that system. Is this at all doable?
As well as, Whenever We try the radar range disappears after going 900m away in each direction is that a bug or am I messing with the wrong thing
can a planes radar see a boats radar?
and can any vehicle see any other eg. helicopter see a boat/plane and the same with and plane can the see boat/helicopter?