do we have this animations that is in gta v offline in fivem? (enter & exit car)
3 years later, and i have the same question
are you talking about the dog in the seat passenger seat?
Yes i already found it out! its a SNC that is being played,
do you mind sharing?
currently my dog script if i want them in the car, the just jump from wherever they are standing and end up in the seat lol
Yeah Sure! but ill send it to you per PM because i had people threaten me to release it and thats not okay, and i want stand for this and ablidge to this, if this settles down or many people ask me for it then ill release it for free.
if anyone wants to find it they can, just have to search through the source code like i have, you asked nicely so yeah sure ill give it to you privately
thanks so much
yes i think so
i have searched for ages for the same thing man its not a commonly known thing.
i too am struggling with my dog script for this exact thing
ill post it here later,
at the time of positing my last response i had people messaging me threats that if i wouldnt post it they would doxx me etc. which is not okay (already reported) and thats why i didnt post it until now. will do later
crazy world out there bro dont do anything to jeopardise your safety mate but if you do decide to share the code please let me know
2024-11-09 09-12-49.mkv (1.3 MB)
local car = nil
local chop = nil
RegisterCommand("car", function(source, args, rawCommand)
local player = PlayerPedId()
local coords = GetEntityCoords(player)
RequestModel("buffalo")
while not HasModelLoaded("buffalo") do
Wait(500)
end
car = CreateVehicle("buffalo", coords, 0, true, false)
SetModelAsNoLongerNeeded("buffalo")
end, false)
RegisterCommand("chop", function(source, args, rawCommand)
local player = PlayerPedId()
local coords = GetEntityCoords(player)
RequestModel("A_C_Chop")
while not HasModelLoaded("A_C_Chop") do
Wait(500)
end
chop = CreatePed(0, "A_C_Chop", coords, 0, true, false)
SetModelAsNoLongerNeeded("A_C_Chop")
end, false)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local player = PlayerPedId()
local veh = GetVehiclePedIsIn(player)
if veh ~= car then
goto continue
end
local chopInVehicleAnimDict = "creatures@rottweiler@in_vehicle@std_car"
local franklinInVehicleAnim = "std_ds_open_door_for_chop"
local doorChop = 1
RequestAnimDict(chopInVehicleAnimDict)
while not HasAnimDictLoaded(chopInVehicleAnimDict) do
Wait(500)
end
RequestAnimDict("misschop_vehicleenter_exit")
while not HasAnimDictLoaded("misschop_vehicleenter_exit") do
Wait(500)
end
TaskPlayAnim(player, "misschop_vehicleenter_exit", franklinInVehicleAnim, 8.0, -8.0, -1, 40)
SetVehicleDoorOpen(veh, doorChop)
while GetVehicleDoorAngleRatio(veh, doorChop) < 0.95 do
Wait(0)
SetVehicleDoorOpen(veh, doorChop)
end
local offset = vec3(2.0, 0.0, -1.0)
ClearPedTasksImmediately(chop)
TaskGoToCoordAnyMeans(chop, GetOffsetFromEntityInWorldCoords(veh, offset), 2.0)
while GetDistanceBetweenCoords(GetEntityCoords(chop), GetOffsetFromEntityInWorldCoords(veh, offset)) > 1 do
print("distance too far")
DrawMarker(1, GetOffsetFromEntityInWorldCoords(veh, offset), 0.0, 0.0, 0.0, 0, 0, 0, 1.0, 1.0, 1.0, 255, 0, 0, 255, false, false, 2, nil, nil, false)
Wait(0)
end
print("distance is good")
ClearPedTasksImmediately(chop)
local syncScene = CreateSynchronizedScene(vec3(0.0, 0.0, 0.0), vec3(0.0, 0.0, 0.0))
AttachSynchronizedSceneToEntity(syncScene, veh, GetEntityBoneIndexByName(veh, "seat_pside_f"))
TaskSynchronizedScene(chop, syncScene, chopInVehicleAnimDict, "get_in", 1000.0, -8.0, 4)
ForcePedAiAndAnimationUpdate(chop)
while IsSynchronizedSceneRunning(syncScene) and GetSynchronizedScenePhase(syncScene) < 0.99 do
print("waiting for chop to get in")
Wait(0)
end
print("chop is in")
SetEntityInvincible(chop, true)
SetPedIntoVehicle(chop, veh, 0)
TaskPlayAnim(chop, chopInVehicleAnimDict, "sit", 8.0, -8.0, -1, 1)
ForcePedAiAndAnimationUpdate(chop)
TaskPlayAnim(player, "misschop_vehicleenter_exit", franklinInVehicleAnim, 8.0, -8.0, -1, 40)
SetVehicleDoorShut(veh, doorChop)
break
::continue::
end
end)