This is a standalone script that will allow you to carry and store a bike onto the back of a vehicle.
Bikes can be picked up by either using the command or the key bind depending on what is setup within the config, The vehicles and bikes that can be used are also customizable as well as being able to configure the position and rotation of the bikes in the players hands and also on the vehicle.
Performance: 0.01ms while not in use | 0.12ms at max usage.
This resource uses FiveM’s Asset Escrow System (Config.lua and Target.lua Editable) This resource uses State Bags - This will require Onesync or Onesync Infinity.
The vehicles and bikes that can be used are also customizable as well as being able to configure the position and rotation of the bikes in the players hands and also on the vehicle.
The Performance of the resource is in the first post, The 0.12ms is the max recorded usage, average is about 0.08ms when carrying the bike.
I have added QB-Target support for picking up bikes at the moment, I will look at adding additional support for storing/taking the bike from the vehicle when iv got some more time.
Share the Target Event rather than add a “Config.Target = x” as with QB Target specifically, we usually will have a Vehicle Target section for things like Checking Tune Status, and so forth. This allows for specifics to be on things like Bikes and so forth. Being said, I was wishing for the Event to be added to my Vehicle Targets rather than a base Target that wouldn’t allow those to also see “Flip Vehicle” when they attempt to view the Target. Another note, this also disrupts their visuals when Targeting a Bicycle as the Bicycle will have multiple “Target Bones” which means one Target has x Events, and the other has x Events rather than all of the Events being in one Target.
I’m not entirely sure I fully understand your suggestion however I have just added a target.lua which includes the unencrypted code for creating the target meaning people can edit this or trigger the event from elsewhere to pickup the bike.
Update: Moved notification function to unencrypted target.lua which allows server owners to change the notifications from chat to their own notification script.