Look no further. This script originated out of an original snippet I shared in a discord a couple of weeks ago. Decided to turn it into a resource and provide to you guys for free.
Full instructions on the github readme.
Check it out here:
Coming Soon:
• Demonstration video
• Throwing players (kek)
• Other stuff maybe
Currently this resource only supports ESX Legacy, however if you want to support 1.1 or others, you’ll need to provide the appropriate ESX get methods.
You can simply remove the import in fxmanifest.lua and then use the following code at the start of the client.lua file.
Client:
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)