I am looking for a mod to hide a player in the trunk

cars
vehicles
trunk

#1

I am looking for a mod or script that allows you to hide players in the trunk of transport.


#2

Don’t think you can actually place someone in the trunk, but you could probably attach him to the trunk and play a anim, not sure how that’d work out though ahaha.


#3

I saw this possibility on one RP server, but I do not know how it works and is being implemented. The player really fits in the trunk of the car.


#4

Maybe this can help u little bit u can use it for create ESX menu or something and add this snippet. I don’t test this so it even can’t work but if you want more help just PM me and i can help u with this script in my free time :wink:

local PlayerIsInTrunk = false
local PlayerGoOutTrunk = false
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed, true)
local NearestVehicle = GetClosestVehicle(coords, 3.0)


Citizen.CreateThread(function()
    if PlayerIsInTrunk then
        AttachEntityToEntity(playerPed, NearestVehicle, GetEntityBoneIndexByName(NearestVehicle, boot), 0, 0, 0, 0, 0, 0, 0, true, false, true, 0, false)
        SetEntityVisible(playerPed,  false)
    end
    if PlayerGoOutTrunk then
        DetachEntity(playerPed, 0, true)
        SetEntityVisible(playerPed, true)
    end
end)