Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions radialmenu/__resource.lua

This file was deleted.

4 changes: 2 additions & 2 deletions radialmenu/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
menuConfigs = {
['emotes'] = { -- Example menu for emotes when player is on foot
enableMenu = function() -- Function to enable/disable menu handling
local player = GetPlayerPed(-1)
local player = PlayerPedId()
return IsPedOnFoot(player)
end,
data = { -- Data that is passed to Javascript
Expand Down Expand Up @@ -44,7 +44,7 @@ menuConfigs = {
},
['vehicles'] = { -- Example menu for vehicle controls when player is in a vehicle
enableMenu = function() -- Function to enable/disable menu handling
local player = GetPlayerPed(-1)
local player = PlayerPedId()
return IsPedInAnyVehicle(player, false)
end,
data = { -- Data that is passed to Javascript
Expand Down
20 changes: 20 additions & 0 deletions radialmenu/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
fx_version 'bodacious'
game 'gta5'

client_scripts {
'config.lua',
'radialmenu.lua'
}

ui_page 'html/menu.html'

files {
'html/menu.html',
'html/raphael.min.js',
'html/wheelnav.min.js',
'html/doors.png',
'html/engine.png',
'html/hood.png',
'html/key.png',
'html/trunk.png'
}