25.07.2018, 00:06
You can also create a pickup that exists always (ID 1) but not handle that pickup using OnPlayerPickUpPickup.
Instead, create a dynamic circular area using Incognito's streamer around the pickup and check OnPlayerEnterDynamicArea.
When a player enters this area, check if he's in a vehicle and do whatever you want as if the player picked up the pickup.
You may also want to disable or delete the pickup when this happens and re-create it later, also disable the dynamic area using a variable in case you want nobody else to be able to pickup the pickup.
Instead, create a dynamic circular area using Incognito's streamer around the pickup and check OnPlayerEnterDynamicArea.
When a player enters this area, check if he's in a vehicle and do whatever you want as if the player picked up the pickup.
You may also want to disable or delete the pickup when this happens and re-create it later, also disable the dynamic area using a variable in case you want nobody else to be able to pickup the pickup.