• Content Count

  • Joined

  • Last visited

Community Reputation

3 Neutral

About ShayF

  • Rank
    Advanced Member


  • Gang

Recent Profile Visitors

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

  1. The reason this no longer works is not an issue with the script, it is an update that google has made to youtube, where they limited the type of devices able to use the TV version of youtube. They give a full list of supported devices on this page here: Unfortunately without something to act as like an emulator, this problem cannot be fixed. MTA can be run on linux, mac, and windows, but in order to emulate a supported device MTA needs to be able to run on something like android, or a smart tv os. Even then mta uses a web browser addition called CEF, which many programs use. It's a version of chromium that can be implemented into really any application. CEF is what gives you your youtube videos in game. Unfortunately that is another breaking point. This is out of MTA's control, and it is out of Tails or Loki's control, so unfortunately this issue cannot be resolved @Varus01 ~ Shay
  2. ShayF


    You can use a youtube api converter to convert youtube videos into mp3 files, however generally these api's only convert music videos. To do this you'd need to do whats called string parsing. Where you take the youtube url and change the string a bit to match what the api needs in order to work, these api's are called web api's and can be used using fetchRemote however it is not ideal because it requires each player to verify access to the url. Alternatively you can use/make your own api with something like nodejs that I don't know much about, but it is a faster, more flexible alternative. There is one other way that doesn't require api's or verifying urls, you can run a browser to a youtube link to play the sound however you'd have to find some way to sync it up with other players and also check the distance between the player or where you created the sound and the elements around it for that 3d effect. I hope this helped, good luck to you mate.
  3. Try enabling the scrolling feature when you have more items than you can display on the scoreboard.
  4. Find a cool loading gif on the internet and load it in with dx. Should work out alright, or you can try my dx library which has a progress bar in it. Let me know if you have any other questions.
  5. You can try this community script shader example that gives you texture names.
  6. Sure mate, hit me up ShayF#0259, I'd be willing to help you out.
  7. ShayF


    If you'd like you can try my dx library. It's available to download for free from github, modify it how you please. You can also ask me questions personally if you have any issues or want help with something.
  8. Use processLine to find the target, time the collision, disable and re-enable collisions for the target at the time the projectile will hit it.
  9. I've been away from MTA for quite some time, probably close to 6 months. I decided to pick up where I left off on one of my projects called Vehicle Manipulation. This project is in efforts to allow any modification at all to the car. So far, all I've done is the wheels and greatly greatly improved the whole concept of attaching objects. In these images, the wheels are cambered, resized, width changed, and they are spaced away from the vehicle. All of which is fully customizable, let me know your thoughts. If I should continue or not. Plans: Animate windows, animate wiper blades, animate steering wheel, animate pedals, animate shifters, animate radios, design an actually realistic shifting system, improve textures, and use processLine to pick up items from the ground and put them on the vehicle or inside the vehicle.
  10. How would I find the offset between element position and the same elements rotation? Like, a player, how would I keep an object to the left of the player when the player rotates?
  11. fiyatt is read as unable to read, which means that the element data 'fiyat' either doesn't exist or just isn't working.
  12. ShayF

    Dx Gui Help

    local sx,sy = guiGetScreenSize() local sw,sh = 1366,768 function toRelative(x,y,w,h) return x/sw*sx,y/sh*sy,w/sw*sx,h/sh*sy end local x,y,w,h = toRelative(400,500,200,300)-- use absolute values here.
  13. ShayF

    dbConnect help

    I have no idea what it is that you mean. Explain more. Show the problem.
  14. Using predefined variables would dramatically decrease your code size. for getResourceRootElement() just use resourceRoot, its a predefined variable that is the resource root, and for getRootElement() just use root, which is a predefined variable for the root element. --This addEventHandler('onClientRender',getRootElement(),function() end) addEventHandler('onResourceStart',getResourceRoot(getThisResource()),function() end) -- vs this, what i'm talking about addEventHandler('onClientRender',root,function() end) addEventHandler('onResourceStart',resourceRoot,function() end)