local obj = CreatePed(10, objectname, x, y+1, z, true, true, true)
SetBlockingOfNonTemporaryEvents(ped, true)
SetPedCombatAttributes(ped, 46, true)
SetPedFleeAttributes(ped, 0, 0)
GiveWeaponToPed(ped, GetHashKey(“WEAPON_PISTOL”), math.random(20, 100), false, false)
The last line didn’t work, what am I doing wrong