@Tinus_NL Could you make it so that you can attach vehicles when the bed is in the upper position
Hey, That is something you will have to modify yourself as i donāt change scripts for specific use cases.
how do you make this work with other flatbeds and is it possible to make it be able to attach vehicle on the bed facing backwards too???
To be able to use this with other flatbeds you need to modify the config. For backward facing you have to modify the code itself as this isnt possible.
so it would be possible with this?
Yes, just look at the config file!
is there anyway of added another flatbed so u can use mutiple flatbeds
Again, please check the config file! Everything is descripted in there including the ability to add multiple hashes/vehicles.
Are you sure you are using the latest version? This must have been fixed since v1.0.7
your github link in the original post opens 1.0.6⦠i think thats why he downloaded the wrong version
Weird. It should always link to the latest version. I guess the embed doesnt change automatically. I replaced it with a direct link to the latest version.
all good saying check the config file but we need more detail which line in the config
Ln 54. Copy 55-71 to add mulitple flatbeds. This is the basics of programming/arrays. Not my problem if you dont understand that. I am not able to help everyone with every small issue.
If youāre having trouble when you detach the vehicle and it jumps away, just add that the vehicle should then stay in place after detaching
elseif Action == "detach" then
if BedInfo.Attached then
local AttachedVehicle = NetworkGetEntityFromNetworkId(BedInfo.Attached)
Citizen.Wait(1000)
DetachEntity(AttachedVehicle, true, true)
SetVehicleOnGroundProperly(AttachedVehicle) -- Vehicle stay on the bed place
TriggerServerEvent("ti_flatbed:editProp", NetworkGetNetworkIdFromEntity(LastVehicle), "Attached", nil)
end
Never had this issue. But seams like a good extra safety measure. I will implement this into the main code!
this can happen on longer trips
Good dam script. Thank you for sharing this <3
You should display that you have to press g to attach the vehicle because currently it dosent show the tip when the bed is lowered.
Thanks! Just must have a modified version of this because it should show the [G] Attach Vehicle
. One thing to note is that if you change the translation of these, in the config, some letters might fall of because of the character limit. It should look like this: