Jump to content

glowdemon1

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by glowdemon1

  1. Mh alrighty, thanks for the help. Works fine now, didn't even see the typo.
  2. thanks for the reply. I've tried this and didn't work, I decided to leave some checks to get some errors and it keeps on saying that getElementData retrieves a nil value. : currentID = 0 function spawnPedUponDead() local pedSkin = getElementModel(source) local x,y,z = getElementPosition(source) local _,_,rz = getElementRotation(source) local ped = createPed(pedSkin,x,y,z,rz,false) if ped then local data = setElementData(ped,"ped_id",curentID) setElementData(ped,"ped_type","deadcorpse") setElementData(ped,"postmortum",getPlayerName(source)) killPed(ped) if data then outputChatBox(currentID..getElementData(ped,"ped_id")..getElementData(ped,"postmortum")) currentID = currentID + 1 end end end addEventHandler("onPlayerWasted",root,spawnPedUponDead)
  3. Hi, I've got some code but unfortunately it doesn't work. Whenever I execute printNearbyPeds (line 58) it unfortunately wont work. There's nothing much to say. I've checked if the elementdata actualy did get stored etc which they actualy do. http://paste.ofcode.org/zf3KfJYMMXQyFFXJ5XUAZ5 , hoping that somebody is able to find my error.
  4. he'll have to give you access to the host's admin panel so you can edit/upload files. if it's a local server : I suggest placing the server folder in a dropbox and then share it
  5. Hey, I have this snippet of code that checks for elements (in this case vehicles and peds) within a radius of 5. However it's really inaccurate and doesn't work sometimes. Here's the code http://paste.ofcode.org/39yJLEeDyKkMg8KC5pj3zvS - No errors but it's just really inaccurate as I mentioned before. The two snippets of code are both located in a different resource so nothing should interfere with eachother. Edit, already solved and replaced with getDistanceBetweenPoints3D.
  6. Ah, that explains it. Since I'm here now, I've got another problem. I can successfully set a ped's anim and it gets saved into my mysql db. But after restarting the script it doesn't load the anims. No errors at all. Here's the code http://paste.ofcode.org/yyyyHeYzb4aYBQQatmL3SW and here's the mysql layout incase you need it. http://puu.sh/6I0X0.png and http://puu.sh/6I0VN.png I've tried without checking if v.animblock exists etc. I also tried tostring() but none helped.
  7. ped_id__ is indeed set. I have checked whether the ID is present and it is indeed present. Here's how I use it : http://paste.ofcode.org/UgUNdigKupSgRFei23YDf4 , at line 18 you can see the element isn't present because it returns an error.
  8. Hi, I have a snippet of code that I'll use to get elements of peds from their ID. It all seems to work, however it does not return the ped element as I've noticed in various tests. Here's my snippet of code : http://paste.ofcode.org/VSWFybYGwAJV6MdeFiQsPw
  9. Hi all, on here I will be putting new maps daily. Pictures and download links are avalaible also, feel free to put them in your server, just don't call my work yours ! I'll be doing requests also, I will only be making maps for roleplay servers for now until further notice, please enjoy my work. -- #1 - Empty garage #2 - Betting(?) shop edit : haven't and wont be uploading maps for a while. busy with other things atm.
  10. Still not solved, edit: sorry for the quadruple post above, didn't notice bumping the post above me would cause it to change data.
  11. Alrighty, I did some more testing and I found out that whenever I move my server folder elsewhere than the original location, this thing happens. Its good that I atleast found something that I can use to bypass this problem, a solution would still be nice tho.
  12. Hi, I was wondering if it would be safe to use setElementData and getElementData serverside without having to fear breaches and fake clients. Are rougue clients a common problem and would I be able to use elementData without an anti cheat system but only if I use elementData serverside and not clientside?
  13. It's called third party bind programs such as auto hot key.
  14. No one on earth cares. It's because we don't offer support with leaked gamemodes.
  15. Sorry to bump an old topic, but is this still updated or is it outdated?
  16. glowdemon1

    ACL

    I shut down my server, editted the ACL, saved and closed it and booted up the server, no possitive results however.
  17. glowdemon1

    ACL

    Hi, thanks for your reply, however unfortunately it still gives me this error : http://puu.sh/5vOwf.jpg
  18. glowdemon1

    ACL

    Heya, I'm trying to set up permissions for my login panel. I'm having trouble with ACL as I haven't used it much before, here's my piece of code from the acl. <group name="logRes"> <acl name="logRes"> <right name="function.addAccount" access="true"></right> <right name="function.login" access="true"></right> <object name="resource.cys-login"></object> </acl> </group>
  19. Perhaps try https://wiki.multitheftauto.com/wiki/GetResourceName - but as solid said, it's kind of un-understandable atm.
  20. local players = getElementsByType ( "player" ) for a,thePlayer in ipairs(players) do setPedAnimation() end Use this instead, loop thru each player.
  21. https://wiki.multitheftauto.com/wiki/Vehicle_variants Don't ask me how to get started tho. But it is possible for sure. Search the forums for related topics, I've found plenty of them, not sure if I get what you exactly mean tho.
  22. What exactly doesn't work? Does the marker appear at all? Does the camera not fade out? Because if you want the camera to be black, you'll have to set fadeCamera() to false instead of true.
×
×
  • Create New...