1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-13 19:59:19 +02:00
parent 123ea8a800
commit 41d330bde5
69 changed files with 66 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,38 @@
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)

View file

@ -0,0 +1,28 @@
fx_version 'cerulean'
lua54 'yes'
game "gta5"
author 'tstudio - turbosaif'
description 'Bennys Luxury Motorworks'
version '1.0.0'
this_is_a_map "yes"
dependencies {
'/server:4960', -- ⚠PLEASE READ⚠; Requires at least SERVER build 4960.
'/gameBuild:2545', -- ⚠PLEASE READ⚠; Requires at least GAME build 2545.
'tstudio_zmapdata', -- ⚠PLEASE READ⚠; Requires to be started before this resource.
}
-- What to run
client_scripts {
'client/client.lua',
}
escrow_ignore {
'stream/vanilla/*/*.*',
'stream/ytd/*.ytd',
'fix_other_maps/*/*.*',
'client/client.lua'
}
dependency '/assetpacks'