[Release][Dunko vRP V6.7 - FX Server] UPDATED 18/04/2018 - Supports 15 languages - Zap Hosting 10% DISCOUNT!


#1461

How can i put this options in phone menu, like press K and select phone menu and appear “Enviar un SMS” , “Llamar jugador” and “Colgar”

> vRP.registerMenuBuilder({"main", function(add, data)
> 	local user_id = vRP.getUserId({data.player})
> 	if user_id ~= nil then
> 		local choices = {}
> 		choices["Enviar un SMS"] = {function(player,choice)
> 			users = vRP.getUsers({})
> 			vRP.buildMenu({"Agenda", {player = player}, function(menu)
> 				menu.name = "Agenda"
> 				menu.css={top="75px",header_color="rgba(200,0,0,0.75)"}
> 				menu.onclose = function(player) vRP.closeMenu({player}) end
> 				myName = tostring(GetPlayerName(player))
> 				for k, v in pairs(users) do
> 					playerName = tostring(GetPlayerName(v))
> 					if(playerName ~= myName)then
> 						playersToCall[playerName] = v
> 						menu[playerName] = {smsPlayer, "Enviar un SMS"}
> 					end
> 				end
> 				vRP.openMenu({player,menu})
> 			end})
> 		end}
> 		choices["📞 Llamar jugador."] = {function(player,choice)
> 			users = vRP.getUsers({})
> 			vRP.buildMenu({"Agenda", {player = player}, function(menu)
> 				menu.name = "Agenda"
> 				menu.css={top="75px",header_color="rgba(200,0,0,0.75)"}
> 				menu.onclose = function(player) vRP.closeMenu({player}) end
> 				user_id = vRP.getUserId({player})
> 				if(inPhoneCall[user_id] == nil)then
> 					myName = tostring(GetPlayerName(player))
> 					for k, v in pairs(users) do
> 						playerName = tostring(GetPlayerName(v))
> 						if(playerName ~= myName)then
> 							playersToCall[playerName] = v
> 							menu[playerName] = {callPlayer, "Llamar jugador"}
> 						end
> 					end
> 				else
> 					menu["📞 Colgar"] = {function(player,choice)
> 						local user_id = vRP.getUserId({player})
> 						vRPpc.cancelCall(user_id)
> 						vRP.closeMenu({player})
> 					end,"Colgar llamada con "..(GetPlayerName(inPhoneCall[user_id]) or " ")}
> 				end
> 				vRP.openMenu({player,menu})
> 			end})
> 		end,"Llamar a un jugador."}
> 		add(choices)
> 	end
> end})

#1462

Thank you for your quick reaction , cant wait for the next update so :smile:


#1463

What is “Agenda”? There are some parts you need to translate and others you must leave alone.


#1464

agenda is contact list , when “llamar jugador” or “enviar un SMS” open the contact list for pick a saved contact
it’s a menu for call a player, if you have saved the player phone in conact list.


#1465

How i can change the bank rob money. i tryed to do this: vRP.giveInventoryItem({user_id,“wallet”,bank.reward,true})
line: 120 vrp_bankrobbery\server.
but nothing happens.
My objetive: chage dirt_money to wallet money.


#1466

Ok so what’s the issue here?

vRP.giveMoney({user_id,bank.reward})


#1467

After the latest update i start to have this problem when i press “k” to open the Main Menù
https://imgur.com/o5MSE5f
Any idea?


#1468

Simple and easy question what is the key to check players in the cop car pc,
or is that even a thing like when at police station?


#1469

After the latest update of FiveM?

The police computers are at the stations, walk into the marker at the PC itself.


#1470

I wan’t tu put “llamar jugador” or “enviar un SMS” in phone menu, like open menu > phone menu > and appear “llamar jugador” or “enviar un SMS”


#1471

Ok so what is your issue so far?


#1472

When i put don’t show in the menu


#1473

FIxed…


How i can remove this menu from hotckey??


#1474

Ok i will reinstall that. And for the chamber of commerce do they just buy a business and they are good?


#1475

Hello @Dunko I was modifying some things and now the stores do not show me the objects and the inventory does not work that it can be? thanks man


#1476

Remove start scoreboard in your server.cfg

Buy a business then use it to launder the dirty money, they can only launder the amount that’s in the business though. So if they put 100k in clean money in the business, they can launder 100k in dirty money as much as they want on a cooldown of 12 hours.

You’ve broke some code, probably missed a comma or added a comma were there shouldn’t be. You’d have to find that yourself.


#1477

When i go to the job center it only shows 8 jobs that i can choose from?


#1478

Hello all Jobs are in vrp/cfg/groups.lua …


#1479

yes however they are not showing up at the job center only some of them are


#1480

How i can increase speed of items_transformers?