Fixed #709 throwing weapons, fixed throwing weapons missing components, added player join msg

This commit is contained in:
ElPumpo
2020-04-24 15:18:16 +02:00
parent 990feb9ca9
commit cb9038c911
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ AddEventHandler('esx:createPickup', function(pickupId, label, coords, type, name
if type == 'item_weapon' then
local weaponHash = GetHashKey(name)
ESX.Streaming.RequestWeaponAsset(weaponHash)
local pickupObject = CreateWeaponObject(weaponHash, 50, coords, true, 1.0, 0)
local pickupObject = CreateWeaponObject(weaponHash, 50, coords.x, coords.y, coords.z, true, 1.0, 0)
SetWeaponObjectTintIndex(pickupObject, tintIndex)
for k,v in ipairs(components) do