1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Release Police Radio

Discussion in 'DarkRP Addon & Plugin Releases' started by LordiAnders, Mar 12, 2014.

  1. Mike Lee

    Mike Lee New Member

    Very Big thx.
     
  2. LordiAnders

    LordiAnders Active Member

    God damnit.... I forgot to change the name of the hook when copying the code over from the surrender code.
    If you've recently downloaded the update, redownload it again, or you may experience issues with surrender's shout key when run along this.
     
  3. atmiz47

    atmiz47 New Member

    Yo this error pops up in console sometimes even though i dont touch the file, sometimes theres no error sometimes there is?

    [ERROR]
    1. unknown - [C]:-1

    Error in hook Think: addons/police_radio/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    stack traceback:
    addons/police_radio/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: in function 'fn'
    addons/ulib-master/lua/ulib/shared/hook.lua:109: in function <addons/ulib-master/lua/ulib/shared/hook.lua:92>
    [C]: in function '‌‎‬‪‭'
     
  4. |W|affles|G|amin|G|

    |W|affles|G|amin|G| New Member

    Hi, just wondering why I get spammed with this and how to fix it. This happens when I spawn into the server, but does stop when I change jobs.

    lue
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84


    [ERROR] addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12: attempt to index a nil value
    1. v - addons/darkrpmodification/lua/darkrp_modules/police_radio/cl_p_radio.lua:12
    2. unknown - lua/includes/modules/hook.lua:84
     
  5. Sir Klutch

    Sir Klutch Active Member


    Upload your cl_p_radio.lua and paste it here.
     
  6. |W|affles|G|amin|G|

    |W|affles|G|amin|G| New Member

    --- Double Post Merged, Oct 30, 2016 ---
    I haven't made any changes to that file, or at least yet but I basically had this issue after downloading this which was an updated version from my other one.
     

    Attached Files:

  7. Sir Klutch

    Sir Klutch Active Member

    On line 7
    Code (Text):
     local lply
    change to
    Code (Text):
    local lply = LocalPlayer()
     
  8. LordiAnders

    LordiAnders Active Member

    That won't help. It's because the job table isn't available to the player by the time they're loading. I need to add a check to see if the job table is valid in the Think hook, just as I have in the HUDPaint hook.
     
  9. Musclekid

    Musclekid New Member

    Hi, I was wondering if anybody knows a way that someone can edit the radio to make it so players can turn their radio off as in they won't hear people speaking for a short amount of time because being staff on a server and having to stay in the police job gets annoying when nobody wants to listen when radio silence is called. I would appreciate if I could get feedback because I would be willing to pay for the modification that allows a toggle of sound for the radio.
     
  10. LordiAnders

    LordiAnders Active Member

    Actually, you're in luck.

    • Possible fix for errors appearing when joining the game.
    • Added the ability for people to toggle received audio on or off, default key is H (Can be changed by players just like the normal toggle button)
    • Added "HUD_Text_On_Receive" and "HUD_Text_Off_Receive" as text shown above the normal text.
    • Removed the "Only_If_On" variable and replaced it with "CanHear_Default", which decides whether or not the receive state is set to on or off by default.

    I'm leaving the old version for download here in the event that someone prefers the old method of toggling hearing, I'm not updating it though.
     

    Attached Files:

  11. Musclekid

    Musclekid New Member

    If we paid extra could you add the feature to the new update so it's a private file for our server?
     
  12. Very nice addon! I have it on my server
     
  13. Sir Snifflebutt

    Sir Snifflebutt New Member

    where do you put the icon
     
  14. You dont need the icon. just put the other file in the addons folder and you can change the jobs in the files
     
  15. Good teammate

    Good teammate New Member

    THAAANKS A LOOOOT!
     
  16. Hey, i was using this for a long time.
    Thanks again for this great addon!
     
  17. LordiAnders

    LordiAnders Active Member

    If you took a minute and read the texts in the config file, yes.
     
  18. Mdjr519

    Mdjr519 New Member

    Hey, Lordi how's it going I have had a problem for the past few days where the radios aren't showing at all I put the file in the addons and the darkrp_modules folder and it still isn't showing. I even have the materials addon.
     
  19. MeLikeyDaCheese

    MeLikeyDaCheese New Member

    How do I install the icons, and then link them so that all players are forced to download them?
     
  20. [HZ-PE]SSG. Tyler

    [HZ-PE]SSG. Tyler New Member

    I got this error whenever I try to use textures instead of png files
     

Share This Page