• Content Count

  • Joined

  • Last visited

  • Days Won


Mr.Loki last won the day on September 16 2017

Mr.Loki had the most liked content!

Community Reputation

162 Celebrity

About Mr.Loki

  • Rank
    Crime Partner
  • Birthday 04/08/1993


  • Gang
  • Location
  • Occupation
  • Interests
    Give me an apple... and I'll eat it!

Recent Profile Visitors

3,736 profile views
  1. Mr.Loki

    [Help] Funcion

    i suggest you just move it to the client and use some triggers
  2. Mr.Loki

    [Help] Funcion

    @IIYAMA he did use the last args of those functions which sets the visibility to thePlayer
  3. Mr.Loki

    [Question] File download

    It's mostly just mods
  4. Mr.Loki

    Zombies spawning in anti zombie zone

    Check if the player is in a zone Disable the spawning of zombies for the player ???? Profit
  5. Mr.Loki

    [HELP] voice chat push to talk

    Once you unbind it and relaunch the client it will be bound to the z key unfortunately. Maybe you can make an issue here and hope that the team can add it.
  6. Mr.Loki

    [HELP] voice chat push to talk

    You can't unbind it for everyone because it a default MTA bind you just have to tell them to use the unbind command.
  7. Mr.Loki


    Either you didn't type the player's name correctly or your "getPlayerNameFromPart" function is bad. Add a check after the function to check if targetPlayer exists then continue the code.
  8. Mr.Loki

    [HELP] voice chat push to talk

    You don't need any special script to make it toggleable. the Z key has 2 binds on it when the key is "down" it calls "voiceptt 1" to enable voice and when it is "up" it calls "voiceptt 0" to disable voice using the voiceptt command without the 1 or 0 will make it toggle so you can simply bind voiceptt to any key and it will work as you want it. to remove voiceptt bind on z do this /unbind z down voiceptt /unbind z up voiceptt to bind to another key /bind your_key voiceptt The client must change the bind themselves. Also not everyone will like the same keys and shouldnt enforce everyone to use the same keys because not all keyboards are the same layout!
  9. Mr.Loki

    disable deathmatch in some cities

    Removing the check that checks if the attacker is an element before checking if the attacker is a player will cause errors because taking fall damage will call this event which does not have an attacker. Edit: It will work as intended but will leave your debug very messy.
  10. Mr.Loki

    [HELP] Moving All Objects At Once

    NeXTreme's Editor Tools perfect for the job, plus lots more features.
  11. Mr.Loki

    Paramedic Command

    addCommandHandler getPlayerFromPartialName -- custom code (must be added to your code for it to work) getPlayerMoney setPlayerMoney getPedStat -- 24 for the ped's max health setElementHealth
  12. Mr.Loki

    get some CEF properties

    It works fine for me tho Try adding the googleapis domain to your whitelist if you're fetching from client I honestly have no idea. I searched a lot before using the API ad couldn't find anything. Would probably need to enable debugging and check there.
  13. Mr.Loki

    restriction skin to ACL group

    This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use setElementModel instead. local restrictedModels = { [11] = true } function skinCheck ( oldModel, newModel ) if getElementType( source ) == "player" then -- check if the new model is in the restricted table. if restrictedModels[newModel] then -- if not in the acl if not isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( source ), aclGetGroup( "Admin" ))) then -- revert to the previous skin setElementModel( source, oldModel ) end end end end addEventHandler ( "onElementModelChange", root, skinCheck )
  14. Mr.Loki

    [HELP] New command

    After executing your "givadmin" command and getting the player from the "[id]" you then: getPlayerAccount => Get the player's account data. getAccountName => Get the account name from the account data. aclGetGroup => Get the ACL Group you want to add the account name to. aclGroupAddObject => Add the account name to the ACL Group.
  15. Mr.Loki

    get some CEF properties

    I think hacking together a way to get the video length would be far too troublesome than to just use the YouTube API: local apiKey - "yourKey" local videoID = "-6u8vrRM52g" fetchRemote(""..videoID.."&key="..apiKey.."&fields=items(contentDetails(duration))&part=snippet,contentDetails",fetchCompleted,"",true) function fetchCompleted(data,err) if err == 0 then local videoLengthData = fromJSON(data) if videoLengthData then iprint(videoLengthData) end else outputDebugString("API: Unable to connect to Google APIs") end end If you want to use multiple video ids in a table you can do this: local videoIDS = { "KiVBoh71yqU", "KiVBoh71yqU", "-6u8vrRM52g" } fetchRemote(""..table.concat(videoIDs,",").."&key="..apiKey.."&fields=items(contentDetails(duration))&part=snippet,contentDetails",fetchCompleted,"",true)