Комментарии:
Hi, I keep getting this weird error but I do everything the same as you resources:guns] Error: guns failed to load: Could not parse resource metadata file D:/txData/CFXDefaultFiveM_772D41.base/resources//guns/__resource.lua: guns/__resource.lua:1: syntax error near 'scripts'
Ответитьcould you make one that gives you max armour and guns when hitting your wanted key?
Ответить⭐⭐⭐⭐⭐
Ответитьmy fivem couldnt start resource guns, I added the resource manifest and fixed any typos and it still does not work :(
ОтветитьThanks you acctully helped me and learned me my first coding launge:)
ОтветитьYour videos are VERY blurry at least on mobile... Also what's your discord for any help. Due to the link for discord you shared doesn't work and takes me to a webpage saying that jeva may be for sale.
Ответитьhow do u space perfect while ur on the line i always gotta delete then enter but everyone of the thigns u do i copy exactlly and they dont work
Ответитьcant find resource guns.....why?
ОтветитьFix, Working 15/08/2021:
functions.lua:
function alert(msg)
BeginTextCommandDisplayHelp("STRING")
AddTextComponentSubstringPlayerName(msg)
EndTextCommandDisplayHelp(0, 0, 1, -1)
end
function notify(msg)
SetNotificationTextEntry("STRING")
AddTextComponentString(msg)
DrawNotification(true,false)
end
function giveWeapon(hash)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey(hash), 999, false, false)
end
RegisterCommand("giveweapon", function(source, args, rawCommand)
local playerPed = GetPlayerPed(-1)
local weaponHash = GetHashKey(args[1])
local ammoCount = 999
TriggerEvent("chat:addMessage", "", {0, 0, 0}, "Giving weapon")
GiveWeaponToPed(playerPed, weaponHash, ammoCount, false)
notify("~r~Giving Weapon.")
end)
client.lua:
RegisterCommand("clear", function()
RemoveAllPedWeapons(GetPlayerPed(-1), true)
notify("~r~Cleared Inventory")
end)
Citizen.CreateThread(function()
local h_key = 168
while true do
Citizen.Wait(1)
if IsControlJustReleased(1, h_key) then
print("The key ".. h_key .. " was pressed")
giveWeapon("weapon_Nightstick")
giveWeapon("weapon_Flashlight")
giveWeapon("weapon_StunGun")
giveWeapon("weapon_MarksmanPistol")
notify("~b~Given Gear")
end
end
end)
Mine dosen't work...
ОтветитьWhat if they have an outdated Manifest?
Ответитьthanks man this was helpful, but i wouldnt mind a longer video for more details on what the code is doing. anyway great work ty
ОтветитьWhy does it say on my starter "can't start stopped resource"? How to fix?
Ответить🇹🇳🇹🇳🇹🇳🇹🇳
ОтветитьYou are talking to yourself,
ОтветитьVery poor explanation tbh, not helpful if you are a beginner in FiveM modding. What are natives even? You should consider explaining everything a little bit better.
ОтветитьHow do you view what you print for the client??
Ответитьit says couldnt find resource guns pls hlep
ОтветитьFor me the it said couldnt find rsource guns help pls
ОтветитьI'm trying to work on RedM scripting but I'm trying to follow along with your tutorials and it's not working.
I couldn't even spawn a ped in T_T
thx for these tutorials, you helped a lot
Ответитьanyhelp do this stil work?? cause i do exactly everything and when i go to load up my server i dont see it
ОтветитьРусские?)))тут
Ответитьcan someone help its say resource not found i followed all steps
ОтветитьI am having an issue with it. My server cant find my resources even tho they are in the resources folder.
ОтветитьThanks! Learnt a'lot from this!
Ответитьi do everything you do but for some reason it doesn't work at all
Ответитьguys can i upload my server without an pi port forward?
ОтветитьAm i the only that can use those command or everyone that joins can use them?
ОтветитьI followed ur tutorial abt make localhost server and it work but there nothing inside no house no fancy car or anything, how do i add those? I mean the house i can go in and clothe shop, barber ect. Pls if there is a video for that can u give me link
Ответитьfor wich fivem version is this script
ОтветитьHow would I go about a command (ex. /givegun "gun name") giving the players the guns instead of pressing a key?
ОтветитьMy guy everytime I launch my seerver it says couldnt load resource guns helppppppppppp!
ОтветитьEverything is fine but when i press "H" I get nil value giveWeapon also /clear works fine
ОтветитьHe is saying can't restart stopped resource pls help and the command help is not working as well when I try to right /help on the chat nothing happens
Ответитьnot working, but the /clear is working
Ответитьthis 13 min video took me a hour and a half this is crazy this was not your best tut but if i was new and seen this i would have left.
ОтветитьI could only get it to work by pasting yours, but still cant get an additional weapon to work what am I doing wrong? lol
Ответитьguys dont use __resource.lua but fxmanifest!!
Ответитьdon't even work LMAO
Ответитьi did everything but it still didnt work
ОтветитьDo you know how to add MK2 weapons to the gun cabinet? Yes we have the mk2 Pistol ingame but we cant place it into the gun cabinet.
Best Regards
im getting this please help "Authenticating with Nucleus failed! That’s bad"
Ответитьhow to edit gun damage?
Ответитьmy server didnt have and issue loading after i put in the resource but it does not work in game
ОтветитьHi, the link to your discord isn't working so i'll ask here: I have set the giving weapons to a command as opposed to a key but when i put the command in chat it does nothing, do i still need that infinit loop if i am using the command? because as far as i understand that is to check if the key was pressed which i wouldn't need for the command, also it'd probably break things because the game is infinately giving the player guns
Ответитьmaybe there is a mistake in the __resource.lua
Ответить