• Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About ShayF

  • Rank


  • Gang

Recent Profile Visitors

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

  1. 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.
  2. Try enabling the scrolling feature when you have more items than you can display on the scoreboard.
  3. 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.
  4. You can try this community script shader example that gives you texture names.
  5. Sure mate, hit me up ShayF#0259, I'd be willing to help you out.
  6. 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.
  7. 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.
  8. 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.
  9. 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?
  10. fiyatt is read as unable to read, which means that the element data 'fiyat' either doesn't exist or just isn't working.
  11. 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.
  12. ShayF

    dbConnect help

    I have no idea what it is that you mean. Explain more. Show the problem.
  13. 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)
  14. setElementFrozen(localPlayer,true)