chore(styling): ensure consistent indentation & define editorconfig

This commit is contained in:
Taso
2021-10-13 21:54:57 -04:00
parent da8da214e4
commit a5ebf4b9ce
13 changed files with 1406 additions and 1225 deletions
+7 -3
View File
@@ -46,13 +46,17 @@ end)
RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
local ped = PlayerPedId()
local hash = GetHashKey(vehName)
if not IsModelInCdimage(hash) then return end
if not IsModelInCdimage(hash) then
return
end
RequestModel(hash)
while not HasModelLoaded(hash) do Wait(10) end
while not HasModelLoaded(hash) do
Wait(10)
end
local vehicle = CreateVehicle(hash, GetEntityCoords(ped), GetEntityHeading(ped), true, false)
TaskWarpPedIntoVehicle(ped, vehicle, -1)
SetModelAsNoLongerNeeded(vehicle)
TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(vehicle))
TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(vehicle))
end)
RegisterNetEvent('QBCore:Command:DeleteVehicle', function()