[Release] allcity_Infokey

ALLCITY_INFOKEY

Hi everyone !
Considering that we’re a cool dev team :lying_face:, we’ve decided to share our work with you !

We want that the whole community can enjoy this script.
This script allows you to display the commands on your server, its very simple.

  • If you want to change the text, you’ll have to change the differents lines into the “ui.html fil*e”.
    For example : Line 23 “F1 key”, change the text between “<p>edit here</p>

  • If you want to change the header, you’ll have to place your image into the “img” folder, remane it as : “header.png

  • The current KEY to open it is [=]

This script is made for role play servers mainly.
This script is fully editable, just do not forget to credit us.

Credits : @Kalu / AllCity Project

Please don’t remove credits.
We will not provide any support for this resource, very simple to use and apply. We will not update this script either.

DOWNLOAD : https://github.com/AllCitySor/allcity_infokey

SCREENSHOT :

GIF (FADE IN /OUT EFFECT) : https://i.gyazo.com/0486ada07c437110edba61fa42d9e1e9.gif

12 Likes

Nice release i really apreciate yall’s work and the sharing of it to the whole fivem community, keep up the good work :grin:

1 Like

Thx a lot mate, we are gonna release another script to display the money (ESX one) tomorrow you’ll like it for sure ^^

EDIT : The key is “=” and not "Y"

Sorry guys.

EDIT : a GIF to show you the fade in / fade out effect

Once again you are hiding me

1 Like

Thanks appreciate it and love the release cant wait fo the money thing in bottom right looks nice
will you also have the food water and all that
anyway we could pm each other, whats your discord?

1 Like

Here it is mate, our discord server : https://discord.gg/sSaAJeM

EDIT : I WILL POST TOMORROW THE BASIC KEY IMG AND THE NAME OF THE FONT, like this, you will be able to change and edit the key’s img as you want

1 Like

hello i change the keys photos to nother one that i make but they dont work the script dont load the picture i need help please its all in png

did you rename the picture as the last one ?

yesScreenshot_1

Are the key’s exactly with the same heading ? I can’t help you that much now, but you can PM me here / or on our discord and i will send you our original [KEY] template.

1 Like

trying to export the function to open the menu to be used in another menu but i cant figure it out

Change to “Q” is not working for me, one error in the console, its not open…whats wrong?

There are some requirements for allcity_infokey? Folder, scripts…

local keyParam = Keys[“Q”]
local isUiOpen = false F

Did you just tryed to remove the entire local keyParam = Keys["Q"] line, and to change it directly in the thread ?

if IsControlJustPressed(1, your_key_number_here) then

example for the key [Q] that you asked for :

if IsControlJustPressed(1, 44) then

Wow! Very fast help, thx! I was joining you discord - love your scripts…hope you will release the stolecar script from youtube :wink:

Ok to my problem:
https://pastebin.com/V6sRFGe6
thats my main.lua
https://pastebin.com/suwyEsTX
thats my changing

Same error in Line 23 now, sorry

do you have a template for the keys so i may change them to my liking?

So i’ve been working on editing this script so I can make it show on spawn but I can’t get it working. Any idea? This is my main.lua (I am VERY new to scripting):

-- MADE BY KALU 
-- [ALL CITY]
-- version : 1.00
-- update : 
-- info: 
local Keys = {
    ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
    ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
    ["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
    ["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
    ["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
    ["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
    ["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
    ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
    ["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118
}

RegisterServerEvent("projectEZ:SpawnPlayer")
local keyParam = Keys["="]
local isUiOpen = false



Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)

        if IsControlJustPressed(1, keyParam) then
             -- do something
             if isUiOpen == false and not IsPlayerDead(PlayerId()) then
                SendNUIMessage({
            	   displayWindow = 'true'
            	   })
                isUiOpen = true
            else
               SendNUIMessage({
                    displayWindow = 'false'
               })
               isUiOpen = false     
            end

            -- SetNuiFocus(true, false);
          	
        end
    end

end)

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(100)
        if IsPlayerDead(PlayerId()) and isUiOpen == true then
            SendNUIMessage({
                    displayWindow = 'false'
               })
            isUiOpen = false

        end    

    end
end)

AddEventHandler('playerSpawned', function(spawn)
	TriggerServerEvent("projectEZ:SpawnPlayer")
	SendNUIMessage({
                    displayWindow = 'true'
               })
            isUiOpen = true
	end
end)