forked from Simnation/Main
ed
This commit is contained in:
parent
123ea8a800
commit
41d330bde5
69 changed files with 66 additions and 0 deletions
BIN
resources/[defaultmaps]/tstudio_bennys/.fxap
Normal file
BIN
resources/[defaultmaps]/tstudio_bennys/.fxap
Normal file
Binary file not shown.
38
resources/[defaultmaps]/tstudio_bennys/client/client.lua
Normal file
38
resources/[defaultmaps]/tstudio_bennys/client/client.lua
Normal 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)
|
28
resources/[defaultmaps]/tstudio_bennys/fxmanifest.lua
Normal file
28
resources/[defaultmaps]/tstudio_bennys/fxmanifest.lua
Normal 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'
|
Binary file not shown.
BIN
resources/[defaultmaps]/tstudio_bennys/stream/vanilla/ap1_04.ytd
Normal file
BIN
resources/[defaultmaps]/tstudio_bennys/stream/vanilla/ap1_04.ytd
Normal file
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