-
Posts
665 -
Joined
-
Last visited
Everything posted by xTravax
-
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?
-
You should leave this forum immediatly
-
--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 )
-
finally thank you! the best thing is your code is similiar to above scaling so it will be easy to use it
-
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
-
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.
-
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?
-
god now its spamming even more with resource-data being nil
-
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
-
what? i need help with this its really annoying
-
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
-
and how would i fit them to all resolutions?
-
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
-
hi there are functions in clientside(fr_client.lua) e.g server.setPedAnimation where is server defined?how does it even work?
-
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
-
also to see when a resource has downloaded and started you can use one of these events: onResourceStart -- server event onClientResourceStart -- client event
-
you could use cache option in meta for client-sided files and set it to false e.g
-
https://wiki.multitheftauto.com/wiki/GetLatentEventStatus
-
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
-
so basically i have to cancel my whole hud project just because mta function uses much cpu? mta has dissapointed me once again