Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new

Script AV-BABY

HARRY7

Gold Elite
Joined
Mar 27, 2021
Messages
42
Reaction score
116
Points
246
whitelisted = {
{identifier = 'steam:1100001373f5478', ped = 'Baby_12'},
{identifier = 'steam:1100001449e0927', ped = 'Baby_1'},

just give access in server lua
 

HARRY7

Gold Elite
Joined
Mar 27, 2021
Messages
42
Reaction score
116
Points
246
Any previews on it. Like is it for spawning as the ped character when you just get in to the game. The ped is ok. But get some previews.
WILL UPLOAD ASAP
 

HARRY7

Gold Elite
Joined
Mar 27, 2021
Messages
42
Reaction score
116
Points
246
see the commands registered is n
Screenshot (78)-min.png
ot for legacy try others
 
Last edited:

Sr.Zek

Silver Elite
Joined
Nov 17, 2021
Messages
28
Reaction score
69
Points
231
Location
spain
Quick solution for the problem with animations and vehicles, I will keep thinking to optimize the solution.

Add this code snippet at the beginning of the client.lua

Citizen.CreateThread(function()
while true do
local p = PlayerPedId()
local vehicle = GetVehiclePedIsIn(p,false)
if c then
if vehicle ~= 0 then
ClearPedTasksImmediately(b)
DeletePed(b)
ClearPedTasksImmediately(p)
TaskWarpPedIntoVehicle(p,vehicle,-1)
c = false
sigueme = false
end
end
Citizen.Wait(1)
end
end)
edit: little fix
edit2: if you still have a little problem modify these two wait to 15/20 mls
'av_baby:caballito'
'av_baby:cargar'
and add Wait (1) after local vehicle = GetVehiclePedIsIn(p,false) in solution
 
Last edited:

Sr.Zek

Silver Elite
Joined
Nov 17, 2021
Messages
28
Reaction score
69
Points
231
Location
spain
The final solution to test for the use of slower machines.
Steps:
1st Reverse the previous solution.
2nd Identify the two functions to be repaired and replace them with those proposed in the solution


RegisterNetEvent('av_baby:cargar')
AddEventHandler('av_baby:cargar', function()
local p = PlayerPedId()
LoadAnim("anim@sports@ballgame@handball@")
LoadAnim("amb@prop_human_seat_chair@male@elbows_on_knees@idle_a")
LoadAnim("random@mugging3")
LoadAnim("anim@move_m@trash")
if #(GetEntityCoords(p) - GetEntityCoords(b)) < 2 then
c = true
TaskTurnPedToFaceEntity(b,p,-1)
Citizen.Wait(1500)
TaskPlayAnim(b, "random@mugging3", "handsup_standing_base", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(50)
TaskPlayAnim(p, "anim@move_m@trash","pickup", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(1300)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 28252), 0.150, 0.010, 0.150, 185, 100, 90,true, true, true, true, 1,true)
Citizen.Wait(200)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 60309), -0.10, -0.49, -0.496, 134.0, 10.0, 0.0,true, true, true, true, 1,true)
Citizen.Wait(50)
ClearPedTasksImmediately(b)
ClearPedTasksImmediately(p)
while c do
if IsPedInAnyVehicle(p, true) then
continua = false
else
continua = true
print("Continua")
end
print(continua)
if not continua then
DeletePed(b)
c = false
print("Eliminando")
break
else
print("Porque no funcionas")
if Config.NoWeapons then DisablePlayerFiring(p) end
if not IsEntityPlayingAnim(b, 'amb@prop_human_seat_chair@male@elbows_on_knees@idle_a', "idle_a", 3) then
TaskPlayAnim(b, 'amb@prop_human_seat_chair@male@elbows_on_knees@idle_a', "idle_a", 8.0, -8, -1, 1, 0, 0, 0, 0)
end
if not IsEntityPlayingAnim(p, 'anim@sports@ballgame@handball@', "ball_idle", 3) then
TaskPlayAnim(p, 'anim@sports@ballgame@handball@', "ball_idle", 8.0, -8, -1, 49, 0, 0, 0, 0)
end
end
Citizen.Wait(5)
end
else
TriggerEvent('av_baby:notification',Config.Lang['far_away'])
end
end)
RegisterNetEvent('av_baby:caballito')
AddEventHandler('av_baby:caballito', function()
local p = PlayerPedId()
local nt = true
LoadAnim("move_m@hiking")
LoadAnim("veh@boat@speed@fds@base")
LoadAnim("random@mugging3")
LoadAnim("anim@move_m@trash")

if #(GetEntityCoords(p) - GetEntityCoords(b)) < 2 then
c = true
zek = true
TaskTurnPedToFaceEntity(b,p,-1)
Citizen.Wait(1500)
TaskPlayAnim(b, "random@mugging3", "handsup_standing_base", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(50)
TaskPlayAnim(p, "anim@move_m@trash","pickup", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(1300)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 28252), 0.150, 0.010, 0.150, 185, 100, 90,true, true, true, true, 1,true)
-- Citizen.Wait(200)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 31086), 0.35, -0.35, 0.0, -0.10, 90.0, 0,true, false, true, true, 1,true)
TaskLookAtEntity(b, p, -1, 2048, 3)
Citizen.Wait(100)
ClearPedTasksImmediately(b)
ClearPedTasksImmediately(p)

while c do
if IsPedInAnyVehicle(p, true) then
continua = false
else
continua = true
print("Continua")
end
if not continua then
DetachEntity(b,1,true)
DeletePed(b)
c = false
print("Eliminando")
break
else
print("Porque no funcionas")
if IsControlJustPressed(0,Config.AnimKey) then
nt = not nt
if not nt then
ClearPedTasksImmediately(p)
end
end
if not IsEntityPlayingAnim(b, 'veh@boat@speed@fds@base', "sit_high", 3) and nt then
TaskPlayAnim(b, 'veh@boat@speed@fds@base', "sit_high", 8.0, -8, -1, 1, 0, 0, 0, 0)
end
if not IsEntityPlayingAnim(p, 'move_m@hiking', "idle", 3) and nt then
TaskPlayAnim(p, 'move_m@hiking', "idle", 8.0, -8, -1, 49, 0, 0, 0, 0)
end
end
Citizen.Wait(5)
end
else
TriggerEvent('av_baby:notification',Config.Lang['far_away'])
end
end)
 

rpc

Bronze Elite
Joined
Dec 7, 2021
Messages
6
Reaction score
2
Points
156
Location
la
The final solution to test for the use of slower machines.
Steps:
1st Reverse the previous solution.
2nd Identify the two functions to be repaired and replace them with those proposed in the solution


RegisterNetEvent('av_baby:cargar')
AddEventHandler('av_baby:cargar', function()
local p = PlayerPedId()
LoadAnim("anim@sports@ballgame@handball@")
LoadAnim("amb@prop_human_seat_chair@male@elbows_on_knees@idle_a")
LoadAnim("random@mugging3")
LoadAnim("anim@move_m@trash")
if #(GetEntityCoords(p) - GetEntityCoords(b)) < 2 then
c = true
TaskTurnPedToFaceEntity(b,p,-1)
Citizen.Wait(1500)
TaskPlayAnim(b, "random@mugging3", "handsup_standing_base", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(50)
TaskPlayAnim(p, "anim@move_m@trash","pickup", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(1300)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 28252), 0.150, 0.010, 0.150, 185, 100, 90,true, true, true, true, 1,true)
Citizen.Wait(200)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 60309), -0.10, -0.49, -0.496, 134.0, 10.0, 0.0,true, true, true, true, 1,true)
Citizen.Wait(50)
ClearPedTasksImmediately(b)
ClearPedTasksImmediately(p)
while c do
if IsPedInAnyVehicle(p, true) then
continua = false
else
continua = true
print("Continua")
end
print(continua)
if not continua then
DeletePed(b)
c = false
print("Eliminando")
break
else
print("Porque no funcionas")
if Config.NoWeapons then DisablePlayerFiring(p) end
if not IsEntityPlayingAnim(b, 'amb@prop_human_seat_chair@male@elbows_on_knees@idle_a', "idle_a", 3) then
TaskPlayAnim(b, 'amb@prop_human_seat_chair@male@elbows_on_knees@idle_a', "idle_a", 8.0, -8, -1, 1, 0, 0, 0, 0)
end
if not IsEntityPlayingAnim(p, 'anim@sports@ballgame@handball@', "ball_idle", 3) then
TaskPlayAnim(p, 'anim@sports@ballgame@handball@', "ball_idle", 8.0, -8, -1, 49, 0, 0, 0, 0)
end
end
Citizen.Wait(5)
end
else
TriggerEvent('av_baby:notification',Config.Lang['far_away'])
end
end)
RegisterNetEvent('av_baby:caballito')
AddEventHandler('av_baby:caballito', function()
local p = PlayerPedId()
local nt = true
LoadAnim("move_m@hiking")
LoadAnim("veh@boat@speed@fds@base")
LoadAnim("random@mugging3")
LoadAnim("anim@move_m@trash")

if #(GetEntityCoords(p) - GetEntityCoords(b)) < 2 then
c = true
zek = true
TaskTurnPedToFaceEntity(b,p,-1)
Citizen.Wait(1500)
TaskPlayAnim(b, "random@mugging3", "handsup_standing_base", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(50)
TaskPlayAnim(p, "anim@move_m@trash","pickup", 8.0, 8.0, -1, 50, 0, false, false, false)
Citizen.Wait(1300)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 28252), 0.150, 0.010, 0.150, 185, 100, 90,true, true, true, true, 1,true)
-- Citizen.Wait(200)
AttachEntityToEntity(b, p,GetPedBoneIndex(p, 31086), 0.35, -0.35, 0.0, -0.10, 90.0, 0,true, false, true, true, 1,true)
TaskLookAtEntity(b, p, -1, 2048, 3)
Citizen.Wait(100)
ClearPedTasksImmediately(b)
ClearPedTasksImmediately(p)

while c do
if IsPedInAnyVehicle(p, true) then
continua = false
else
continua = true
print("Continua")
end
if not continua then
DetachEntity(b,1,true)
DeletePed(b)
c = false
print("Eliminando")
break
else
print("Porque no funcionas")
if IsControlJustPressed(0,Config.AnimKey) then
nt = not nt
if not nt then
ClearPedTasksImmediately(p)
end
end
if not IsEntityPlayingAnim(b, 'veh@boat@speed@fds@base', "sit_high", 3) and nt then
TaskPlayAnim(b, 'veh@boat@speed@fds@base', "sit_high", 8.0, -8, -1, 1, 0, 0, 0, 0)
end
if not IsEntityPlayingAnim(p, 'move_m@hiking', "idle", 3) and nt then
TaskPlayAnim(p, 'move_m@hiking', "idle", 8.0, -8, -1, 49, 0, 0, 0, 0)
end
end
Citizen.Wait(5)
end
else
TriggerEvent('av_baby:notification',Config.Lang['far_away'])
end
end)
You the man thanks for being on top of things <3
 
Top