Skip to content

For RedM. Some option for player , spawn horse , add / remouve Campfire and hid / display the hud on pad - WIP

Notifications You must be signed in to change notification settings

cedricalpatch/rpf_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

For RedM . Some option for player , spawn horse , add / remouve Campfire and hid / display the hud on pad - WIP

Some fun Option :

Up = Horse Down = Hid / display Hud right = spawn campfire left = del campfire

Modular MENU :

Menu based on warmenu so you can use like the fiveM version if you know

CLOTHE SHOP : Buy the complet clorhd for all ped demo added you can added how mush you whant . Juste added this line after 247

    elseif (Vdist(coords.x, coords.y, coords.z, x, y,z) < 1.0) then 
        WarMenu.OpenMenu('tenu')

AMUNATION: Buy weapon with ammo for the player demo added you can added how mush you whant . Juste added this line after 108

    elseif (Vdist(coords.x, coords.y, coords.z, x, y,z) < 1.0) then 
        WarMenu.OpenMenu('tenu')

GARE EXPRESS : This is simple teleportation demo added you can added how mush you whant . Juste added this line after 35

    elseif (Vdist(coords.x, coords.y, coords.z, x, y,z) < 1.0) then 
        WarMenu.OpenMenu('tenu')

PERSONAL MENU : For have personal menu , demo here :

Citizen.CreateThread(function()
	local items = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }
	local currentItemIndex = 1
	local selectedItemIndex = 1
	local checkbox = true

	WarMenu.CreateMenu('test', 'Test title')
	WarMenu.CreateSubMenu('closeMenu', 'test', 'Are you sure?')

	while true do
		if WarMenu.IsMenuOpened('test') then
			if WarMenu.CheckBox('Checkbox', checkbox) then
				checkbox = not checkbox
				-- Do your stuff here
			elseif WarMenu.ComboBox('Combobox', items, currentItemIndex, selectedItemIndex, function(currentIndex, selectedIndex)
					currentItemIndex = currentIndex
					selectedItemIndex = selectedIndex

					-- Do your stuff here if current index was changed (don't forget to check it)
				end) then
					-- Do your stuff here if current item was activated
			elseif WarMenu.MenuButton('Exit', 'closeMenu') then
			end

			WarMenu.Display()
		elseif WarMenu.IsMenuOpened('closeMenu') then
			if WarMenu.Button('Yes') then
				WarMenu.CloseMenu()
			elseif WarMenu.MenuButton('No', 'test') then
			end

			WarMenu.Display()
		elseif IsDisabledControlJustPressed(0, "KEY_YOU_WHANT") then -- check in config the key
			WarMenu.OpenMenu('test')
		end

		Citizen.Wait(0)
	end
end)

Replace any code here :

(Vdist(coords.x, coords.y, coords.z, x, y,z) < 1.0)

BY

IsDisabledControlJustPressed(0, "KEY_YOU_WHANT")

More info and update

https://discord.gg/aX5th2U

WIP

know bug :

Horse spawn any you whant Campfire dont despawn

About

For RedM. Some option for player , spawn horse , add / remouve Campfire and hid / display the hud on pad - WIP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages