Jump to content

xTravax

Members
  • Posts

    665
  • Joined

  • Last visited

Everything posted by xTravax

  1. hello i tried using some similiar thing -- not whole script, just an idea in here spawnpoints = { [1] = -1344.4324,609.234,13, [2] = 0,0,2 } -- later on setElementPosition(playerElement,spawnpoints[math.random(1,#spawnpoints)]) this would use just one variable of coordinate in table(?) -- anyway the place where i'd need to spawn was completely wrong how can i move a player to x,y,z position depending on random spawnpoint in table?
  2. --server function datas () local theacc = getPlayerAccount ( client ) local mydata = getAccountData ( theacc, "myData", datano ) or 0 triggerClientEvent("data",client,client,mydata) end addEvent ("getTheData", true) addEventHandler ("getTheData", root, datas) --Client addEvent("data".true) function theData(data) data = mydata end addEventHandler("data",root,theData) addEventHandler( "onClientGUIClick", root, function () if source == data.button[3] then triggerServerEvent( "getTheData", localPlayer) guiSetText ( datalabel, "Your life time iron : "..tonumber(mydata) ) end end )
  3. xTravax

    a question

    finally thank you! the best thing is your code is similiar to above scaling so it will be easy to use it
  4. rofl no they also failed and that's also the worst hosting ever and they have betrayed their customers and they were unresponsive considering support and tickets
  5. 0.15 per slot i need under 0.10 Did you see the price list of Insane Hosting? insane hosting is currently closing unfortunately. It's death date will be on 28th of November.
  6. xTravax

    a question

    that could help me later but thats not exactly what im searching for if an icon for example is 128x128 fine on 1920x1080 resolution,on 800x600 resolution it will be seriously too huge how could i simply scale it so that it gets width and height from screen size?
  7. god now its spamming even more with resource-data being nil
  8. yea but whenever i make new or rename element data i would need to write that string for 2301902 times and this keeps spamming my debugscript 3 when im e.g killing zombies,players,getting in vehicle,anything element data changes
  9. what? i need help with this its really annoying
  10. hi umm whenever i change element data of a player with a script, admin resource says server/admin_main.lua:1458 client mismatch from ip address onElementDataChange myCustomElementDataName how can i fix this?its really annoying
  11. xTravax

    a question

    can u give me an example?
  12. xTravax

    a question

    and how would i fit them to all resolutions?
  13. xTravax

    a question

    hello there i am looking for some easy method how to fit any image or dx rectangle on any resolution without always using calculator and calculating or doing anything complex for text scale to fit on all resolutions i saw a post from Feche local scale = (1 / 1080) * sy-- made on 1920x1080 resolution with scale 1 and dividing with 1080 and * players height is there any simple method to make images and rectangles fit perfect on all resolutions like above example? thanks in advance
  14. hi there are functions in clientside(fr_client.lua) e.g server.setPedAnimation where is server defined?how does it even work?
  15. xTravax

    The last reply

    Ebola *grabs popcorn*
  16. xTravax

    setGuiSize()

    you can put whatever arguments of size when drawing gui's but if you put size bigger than client's resolution, the gui will be bugged for the client who doesnt have high enough resolution
  17. also to see when a resource has downloaded and started you can use one of these events: onResourceStart -- server event onClientResourceStart -- client event
  18. you could use cache option in meta for client-sided files and set it to false e.g
  19. https://wiki.multitheftauto.com/wiki/GetLatentEventStatus
  20. if i use images, it would be hard to make it(smooth) and also it wouldn't be smooth as i have no idea how would i do that unfortunately. drawing rectangles.. not sure how would i do that and saml1er,code can work faster but cpu usage wont change a bit(tested) how does race gamemode draw its blue speedometer bar though?(i know, by images yes but i meant how does it draw images next to each other so perfectly..) race gamemode itself doesn't consume much cpu and it does same thing im doing except its not in a circle
  21. so basically i have to cancel my whole hud project just because mta function uses much cpu? mta has dissapointed me once again
×
×
  • Create New...