[Release] Take Hostage

Is there a direct download link?

2 Likes

You can download trough guthub bruh

Btw Nice release

I like the release.

But you need to be more aware of your code, it’s unoptimized.

1 Like

call de cops:
after line 33:

local coords = GetEntityCoords(GetPlayerPed(-1))

After line 59 client.lua:

TriggerServerEvent(‘esx_addons_gcphone:startCall’, “police”, ‘Vi uma pessoa a ser raptada com uma arma apontada a cabeça!’,
{
x = coords.x,
y = coords.y,
z = coords.z
})

2 Likes

how to download it

1 Like

@Its_Us By using the link :thinking:

i press on upload file it says File uploads require push access to this repository

Awesome
good job boy

2 Likes

you need to fix it like when the hostage is dead can’t make takehostage for who killed him + when i take hostage the hostage can canceld the animation by moving right left not freeze!

Being held hostage wound’t DisableControlAction

Disablecontrolaction for f6 is not working in this file

where i have to put that?? imagen this is the 33 line

Update:

Added ammo check for weapons.
Added extra shorter command /th & code cleanup
Fixed disable controls for the hostage not working
Changed death check from health to isEntityDead

4 Likes

i wanna make it from /th (the command) to a key to press, how ?

1 Like

UP ??? thank

What was the question?
Sorry for your English :wink:

Citizen.CreateThread(function()
while true do
Citizen.Wait(5)
if IsControlJustPressed(1, Keys[‘E’]) and IsControlPressed(1, Keys[‘LEFTSHIFT’]) then
takeHostage()
end
end
end)

thanks but where do i add it , which line

and if anyone can help me to do this , 1- when you die u can’t use /th , 2- when someone take you as hostage u can’t do /th , thanks a lot