forked from Simnation/Main
ed
This commit is contained in:
parent
3e3891ff86
commit
ec23e16733
1008 changed files with 27 additions and 313 deletions
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
local modelHash = joaat("turbosaif_bennys_carpodest")
|
||||
|
||||
local function drawHelpNotify(message)
|
||||
SetTextComponentFormat('STRING')
|
||||
AddTextComponentString(message)
|
||||
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
|
||||
end
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(0)
|
||||
local ped = PlayerPedId()
|
||||
local coords = GetEntityCoords(ped)
|
||||
local closestPodest = GetClosestObjectOfType(coords, 2.5, modelHash, false, true, true)
|
||||
|
||||
if closestPodest ~= 0 then
|
||||
local podestCoords = GetEntityCoords(closestPodest)
|
||||
local podestOrientation = GetEntityRotation(closestPodest, 2)
|
||||
local vehicle = GetVehiclePedIsIn(ped, true)
|
||||
|
||||
if vehicle ~= 0 then
|
||||
local vehicleCoords = GetEntityCoords(vehicle)
|
||||
local vehicleOrientation = GetEntityRotation(vehicle)
|
||||
|
||||
DrawMarker(20, podestCoords.x, podestCoords.y, podestCoords.z + 0.5, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.5, 0.5, 0.5, 217, 39, 39, 100, true, true, 2, false, false, false, false)
|
||||
drawHelpNotify("~b~Press ~INPUT_TALK~ to place vehicle on Podest")
|
||||
|
||||
if IsControlJustReleased(1, 38) then
|
||||
SetEntityCoords(vehicle, podestCoords.x, podestCoords.y, podestCoords.z + 0.5)
|
||||
SetEntityRotation(vehicle, podestOrientation.x, podestOrientation.y, podestOrientation.z, 2)
|
||||
FreezeEntityPosition(vehicle, not IsEntityPositionFrozen(vehicle))
|
||||
end
|
||||
end
|
||||
else
|
||||
Citizen.Wait(1000)
|
||||
end
|
||||
end
|
||||
end)
|
|
@ -1,20 +0,0 @@
|
|||
fx_version 'cerulean'
|
||||
lua54 'yes'
|
||||
game "gta5"
|
||||
|
||||
author 'tstudio - turbosaif'
|
||||
description 'Bennys Luxury Motorworks'
|
||||
version '1.0.0'
|
||||
|
||||
this_is_a_map "yes"
|
||||
|
||||
-- What to run
|
||||
client_scripts {
|
||||
'client/client.lua',
|
||||
}
|
||||
|
||||
escrow_ignore {
|
||||
'stream/ytd/*.ytd',
|
||||
'client/client.lua'
|
||||
}
|
||||
dependency '/assetpacks'
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue