Gordon_G

Members
  • Content Count

    261
  • Joined

  • Last visited

Posts posted by Gordon_G


  1. I may have a solution. When you attach your ped to an element (like an object) and then destroy that element it turns the light back on the peds (so the bug is solved)

    However I don't know if it always work, I just noticed that while I was scripting


  2. 1 - Download an image like this one (or make it yourself)

    https://www.google.fr/search?q=transparent+with+black+vignette&tbm=isch&ved=2ahUKEwjwpvrU96zpAhX6gM4BHcEBC8oQ2-cCegQIABAA&oq=transparent+with+black+vignette&gs_lcp=CgNpbWcQAzoECCMQJzoECAAQQzoCCAA6BAgAEB46BAgAEBM6CAgAEAgQHhATOgYIABAIEB46BggAEAUQHlCcnAZYnbgGYKq5BmgAcAB4AIABQIgB9wiSAQIyMJgBAKABAaoBC2d3cy13aXotaW1n&sclient=img&ei=1Nu5XvDsO_qBur4PwYOs0Aw&bih=631&biw=1366#imgrc=dXC6_MSyTzxFAM

    2 - Add it to your resource's meta.xml by adding a line like this one

    <file src="your name file.extension" />

    3 - Draw it to the player's screen by using script

    You'll need to retrieve player's screen weight and height in order to draw the image fullscreen 

    guiGetScreenSize

    Then draw the image with one of the functions that Furzy gave you


  3. Try to debug it by adding some iprint where you have an IF and print the life of the source etc so you can see where the issue comes from


  4. No we won't do your job, we can explain you but we are not your slaves

     

    isObjectInACLGroup function requires two args as it's written on the mta's wiki

    isObjectInACLGroup ( string theObject, aclgroup theGroup )

    First argument : theObject: the name of the object to check. Examples: "resource.ctf", "user.Jim". - source : wiki

    What is interesting us here is the "user.Jim" example because we want to know if the driver is an admin

    Maybe we could do something with it, like assembling "user." and the player's account name

    isObjectInACLGroup ( "user."..accName, aclgroup theGroup )

    Second argument : theGroup: the ACL group pointer of the group from which the object should be found. - source : wiki

    The argument required here is not a string like in the first argument it's an "aclgroup"

    In the wiki's example you can see this :

    isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) )

    The function that is interesting us is aclGetGroup let's copy and paste it in our function

     

    As you can see you could have solve your problem directly by just READING the wiki when @majqq gave you the right function

    Have a nice day

     


  5. I've worked on it, it's a very difficult subject

    In fact if you use setPedControlState, you'll have a lot of issue

    Firstly, it'll depends on client's framerate because this function is client side also you might have sync issues

    The best thing I could advise you is to freeze the player, then move him with setElementPosition every frame and during this process using setPedControlState to make him acts like if he was walking

    Or you could synchronise the position of your bots with the server so they are synchronized


  6. [BETA] GDayZ


     

     

     

    https://streamable.com/h5p9u - Inventory, Loot

    About me


    Hello, I'm a scripter from France, I practice this activity since 2 years but I have never released any project. Today I'd like to introduce you my project : GDayZ (meaning Gordon DayZ of course). Years ago I was playing MTA DayZ on many servers and I was like : "Yeah, that's cool, but those server are always the same, many bugs, many cheat, boring af". 

    That's how I started working on my project in october 2018. My goal was to bring about a revolution on MTA DayZ.I have already shown a piece of GDayZ on this forum  with my mapping tool that is used for the gamemode. 

     

    • Like 1