[Release] Daves Emotes /... Now with umbrella!

how would I go about adding more

@Ace_Dax that would be nifty. Pretty simple to do too. Just gotta change the Animation Flags from w.e. it is to 49. (Havent looked at it in a while lol)

@En3rgized247 Sorry mate, just haven’t been coding much lately, Ill probably get back into it once Im done on my Rocket League grind. 2 Div away from GC :smiley:

@mark_buckley_bucko_g ? What do you mean? You would have to add your own blocks of code in it for more. I have a few ideas ready to go I just need to get around to actually coding them. Lol

@Ege_Erdinc Someone just released exactly what you’re talking about. :smiley: Ill probably add my own at some point down the line. Carrying bag with /bag

1 Like

Did anyone figure out how to make the props disappear?

try adding this one

RegisterCommand("cash",function(source, args)

	local player = GetPlayerPed(-1)
	local plyCoords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(PlayerId()), 0.0, 0.0, -5.0)
	local cashmodel = CreateObject(GetHashKey(cashmodel), plyCoords.x, plyCoords.y, plyCoords.z, 1, 1, 1)
	local netid = ObjToNet(cashmodel)
	local ad = "anim@mp_player_intupperraining_cash"
	local pd = "scr_xs_celebration" 
	local pn = "scr_xs_money_rain"

	if (DoesEntityExist(player) and not IsEntityDead(player)) then ---------------------If playing then cancel
		loadAnimDict(ad)
		RequestPtfxAsset(pd)
		RequestModel(GetHashKey(cashmodel))
		if holdingcash then
			--TaskPlayAnim(player, ad, "exit", 8.0, 1.0, -1, 11, 0, 0, 0, 0)
			--Wait(1840)
			DetachEntity(NetToObj(cash_net), 1, 1)
			DeleteEntity(NetToObj(cash_net))
			Wait(750)
			ClearPedSecondaryTask(GetPlayerPed(-1))
			cash_net = nil
			holdingcash = false
			StopParticleFxLooped(pn,0)
		else
			Wait(500) ---------------------if not playing, then play
			SetNetworkIdExistsOnAllMachines(netid, true)
			NetworkSetNetworkIdDynamic(netid, true)
			SetNetworkIdCanMigrate(netid, false)
			TaskPlayAnim( player, ad, "idle_a", 8.0, 1.0, -1, 51, 0, 0, 0, 0 )
			Wait (1260)
			AttachEntityToEntity(cashmodel,GetPlayerPed(PlayerId()),GetPedBoneIndex(GetPlayerPed(PlayerId()), 60309),0.0,0.0,0.01,180.0,360.0,70.0,1,1,0,1,0,1)
			Notification("Press ~r~[E]~w~ to Make it Rain")
			cash_net = netid
			holdingcash = true
		end
	end

	while holdingcash do
		Wait(0)
		if IsControlJustPressed(0, 38) then
			Wait(500)
			RequestNamedPtfxAsset(pd)
			HasNamedPtfxAssetLoaded(pd)
			UseParticleFxAssetNextCall(pd)
			StartParticleFxLoopedOnEntity(pn, cashmodel, 0.0, 0.0, -0.09, -80.0, 0.0, 0.0, 1.0, false, false, false)
		end
	end
end, false)

and add this to the props at the top

local holdingcash = false
local cashmodel = “prop_anim_cash_pile_01”
local cash_net = nil

2 Likes

also fireworks
local holdingfw = false
local fwspawned = “ind_prop_firework_01”
local fw_net = nil

RegisterCommand("fw",function(source, args)

	local player = GetPlayerPed(-1)
	local plyCoords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(PlayerId()), 0.0, 0.0, -5.0)
	local fwspawned = CreateObject(GetHashKey(fwspawned), plyCoords.x, plyCoords.y, plyCoords.z, 1, 1, 1)
	local netid = ObjToNet(fwspawned)
	local ad = "anim@amb@nightclub@mini@drinking@champagne_drinking@base@"
	local pd = "scr_indep_fireworks" 
	local pn = "scr_indep_firework_fountain"

	if (DoesEntityExist(player) and not IsEntityDead(player)) then ---------------------If playing then cancel
		loadAnimDict(ad)
		RequestModel(GetHashKey(fwspawned))
		if holdingfw then
			TaskPlayAnim(player, ad, "exit", 8.0, 1.0, -1, 49, 0, 0, 0, 0)
			Wait(1840)
			DetachEntity(NetToObj(fw_net), 1, 1)
			DeleteEntity(NetToObj(fw_net))
			Wait(750)
			ClearPedSecondaryTask(GetPlayerPed(-1))
			fw_net = nil
			holdingfw = false
			RemoveNamedPtfxAsset(pd)
			RemoveAnimDict(ad)
		else
			Wait(500) ---------------------if not playing, then play
			SetNetworkIdExistsOnAllMachines(netid, true)
			NetworkSetNetworkIdDynamic(netid, true)
			SetNetworkIdCanMigrate(netid, false)
			TaskPlayAnim( player, ad, "bottle_hold_idle", 8.0, 1.0, -1, 49, 0, 0, 0, 0 )
			Wait (1260)
			AttachEntityToEntity(fwspawned,GetPlayerPed(PlayerId()),GetPedBoneIndex(GetPlayerPed(PlayerId()), 28422),-0.005,0.0,0.0,360.0,360.0,0.0,1,1,0,1,0,1)
			Notification("Press ~r~[E]~w~ to start the firework")
			fw_net = netid
			holdingfw = true
		end
	end

	while holdingfw do
		Wait(0)
		if IsControlJustPressed(0, 38) then
			Notification("Yay")
			Wait(500)
			RequestNamedPtfxAsset(pd)
			HasNamedPtfxAssetLoaded(pd)
			UseParticleFxAssetNextCall(pd)
			StartParticleFxLoopedOnEntity(pn, fwspawned, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, false, false, false)
		end
	end
end, false)

if someone figures out how to change color that’d be great

1 Like

oh and lazlow’s horse

local holdinghors = false
local horsmodel = “ba_prop_battle_hobby_horse”
local hors_net = nil

RegisterCommand("hors",function(source, args)
	local ad1 = "anim@amb@nightclub@lazlow@hi_dancefloor@"
	local ad1a = "dancecrowd_li_15_handup_laz"
	local player = GetPlayerPed(-1)
	local plyCoords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(PlayerId()), 0.0, 0.0, -5.0)
	local umbspawned = CreateObject(GetHashKey(horsmodel), plyCoords.x, plyCoords.y, plyCoords.z, 1, 1, 1)
	local netid = ObjToNet(umbspawned)


	if (DoesEntityExist(player) and not IsEntityDead(player)) then 
		loadAnimDict(ad1)
		RequestModel(GetHashKey(horsmodel))
		if holdinghors then
			Wait(100)
			ClearPedSecondaryTask(GetPlayerPed(-1))
			DetachEntity(NetToObj(hors_net), 1, 1)
			DeleteEntity(NetToObj(hors_net))
			hors_net = nil
			holdinghors = false
		else		
			PlayFacialAnim( player, "mood_dancing_medium_1", "facials@gen_male@base")
			TaskPlayAnim(player, ad1, ad1a, 8.0, 1.0, -1, 49, 0, 0, 0, 0)
			Wait(500)
			SetNetworkIdExistsOnAllMachines(netid, true)
			NetworkSetNetworkIdDynamic(netid, true)
			SetNetworkIdCanMigrate(netid, false)
			AttachEntityToEntity(umbspawned,GetPlayerPed(PlayerId()),GetPedBoneIndex(GetPlayerPed(PlayerId()), 28422),0.0,0.0,0.0,0.0,0.0,0.0,1,1,0,1,0,1)
			Wait(120)
			hors_net = netid
			holdinghors = true
		end
	end
end, false)
1 Like

Hi nice release how can I add all its animations to a menu? An idea ^^

missed the whole point of animations while walking

I am going to add it to my warmenu later, ill let you know how it goes and tell you how i done it :slight_smile:

Is there a mod like this for Client Sided? I would like to use something similar like this but on other peoples servers.

when are you going to add the smoke

Did u make this command “clear”?

sorry for the extremely late response, long story short, no, this is not at all within fivem’s reach.

Yeah all good man lmao. I’ve figured everything out since when I said that 2 years ago.