Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Lergen

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I second this notion as well, a public release of it would be a game-changer because we have no optimized ped system. Stuff like peds generally get put on the backburner in favor of working on the server's core gameplay elements/bugfixing since they're not a necessity. It'd be great to have a pre-existing core to work on rather than needing to make one from the ground up, you could probably make a github page or something for it too.
  2. Ah I see, so it's an MTA issue? That's unfortunate. I'll try out what you mentioned though, thanks for the advice! It's hardly a big inconvenience at least, I was just worried it might've been something I did on my end since it's a rather strange problem.
  3. Strange. Yeah, these are default map objects - they're from a vanilla GTASA interior which should be unmodified from any work I've done, it's why it struck me as odd. There's a bunch of objects with no particular commonality on the vanilla SA overworld that are unfortunately plagued by this issue, although replaced objects have it as well - even some playermodels. Sadly it's hard to recall when exactly this cropped up, but I'm pretty sure some of these models were fine at one point, so it's quite strange.
  4. I'm unsure how to best describe this issue other than that, the outlines of certain objects seem to have the peculiar effect of having the current weather's color "bleed through" their outlines when viewed from certain angles, almost as if they had some kind of transparency. For example: The outlines on these vanilla SA objects are blue here, but if the weather were night-time for example, they'd be black. However if I adjust my position a little bit, then the effect entirely disappears. Any idea what causes this, or a possible solution? I've sea
  5. Very cool, I played around with it on your server for a few minutes. It's nice to see an attempt being made at something like this since the only alternative, NPC HLC, is a real resource hog for servers even with the number of peds toned down. Do you have any plans to release it? I'd love to poke around the code.
  6. Thank you! I've been playing around with it, and I think I have a pretty solid understanding of how it works now.
  7. Thank you for your help, although I'm still a bit confused. So I need to trigger a client-side event from the server to actually pass the information? I tried doing something like this: --SERVER addEvent ("getRandomPlayer",true) function randomPlayer () randomPlayer = getRandomPlayer() triggerClientEvent (root, "checkPlayer", root, randomPlayer) end addEventHandler ("getRandomPlayer", resourceRoot, randomPlayer) --CLIENT addEvent("checkPlayer", true) function checkPlayer ( commandName ) triggerServerEvent ( "getRandomPlayer", resourceRoot, randomPlayer ) outputChatBox ( getPlayerNa
  8. Hello. I'm a bit stumped on something and can't quite figure out where I'm going wrong here. I want to pass a variable from the server to the client, but all my attempts return the variable come back as nil. Any advice on what I'm doing wrong here? Here's a simple example where I try to pass "randomPlayer" to output on a client's chatbox but returns the player element as nil. I've read the wiki and some other posts regarding this but I still don't quite get it. Server: addEvent ("getRandomPlayer",true) function randomPlayer () randomPlayer = getRandomPlayer() end addEventHandler ("g
  9. Ah I really should've checked the search function first. This was exactly what I was trying to do, thanks a bunch.
  10. I hate to bump, but I'm afraid I still haven't figured this out. This is the function's source as listed on the wiki: function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies
  11. I'm a bit stumped on something - I'm trying to use dxDrawImageOnElement and while it works as it should, it seems you cannot change the the actual height of the image to be any larger like you can with the width argument. You can change the height (location) of the image, but not image's actual size-wise height. Strangely the wiki page lists two different arguments for height that you can use which I'm guessing is what I need, but only one of them seems to work. I'm not sure if this is a mistake or if I'm missing something here. Any ideas? I'd greatly appreciate any help on this.
  12. Lergen

    Script error?

    Thanks for the tip. So after trying that code and starting the script, I get barraged with error messages when I start the video: "bad argument at 'dxDrawimage' [expected material at argument 5, got nil]" and "bad argument at 'loadbrowserURL' [expected browser at argument 1, got nil]" Thinking the problem was with it being that I was using a video file rather than a video URL, I tried the YouTube example on the wiki function renderBSOD() local x, y = guiGetScreenSize() playVideo (0, 0, x, y, "https://www.youtube.com/embed/rRjY8SOZ9Uo?autoplay=1&showinfo=0&rel=0&am
  13. Lergen

    Script error?

    Hello. I made a slight modification to Dutchman's BSOD script to play a video rather than display an image, but I'm receiving an error on line 5: "attempt to call global 'playVideo' (a nil value). Can anyone offer some advice as to what's wrong here? I'd greatly appreciate it. local bsodTimer function renderBSOD() local x, y = guiGetScreenSize() playVideo (0, 0, x, y, "bs2.mp4", 90600, false, false) -- bs.png for win7/XP, bs2.png for Win10/modern BSOD screen. change at will end function performPrank(thePlayer) if (thePlayer == getLocalPlayer()) then if (isTimer(bsodTimer)) the
  14. Thanks so much for your help! I hate to ask again, but I'm still a bit confused as to where to go from here, as removing those lines still seems to present another error: addEventHandler("onPlayerLogin", root, function(thePlayer, command) local account_name = getAccountName(player_account) if not isObjectInACLGroup("user."..account_name, aclGetGroup("Admin")) and isObjectInACLGroup("user."..account_name, aclGetGroup("Moderator")) then return false end local img = ":admin/client/images/flags/us.png" local country_code = "US" setElementData(thePlayer, "Country", {img, c
  15. Hello. I've been attempting to modify the scoreboard so that when a moderator/admin logs in, they're automatically assigned the region/flag of the country specified in the Lua script. addEventHandler("onPlayerLogin", root, function(thePlayer, command) local player_account = getPlayerAccount(thePlayer) if not player_account then return false end local account_name = getAccountName(player_account) if not isObjectInACLGroup("user."..account_name, aclGetGroup("Admin")) and isObjectInACLGroup("user."..account_name, aclGetGroup("Moderator")) then return false end local img =
  • Create New...