-
Posts
1,449 -
Joined
-
Last visited
-
Days Won
32
Everything posted by DiSaMe
-
dxDrawImage dxDrawImageSection -- whatever stuff you can make using images You mean that?
-
Server doesn't have such event like "onClientPlayerQuit". Use "onPlayerQuit".
-
You can probably change the visual (but not physical) pose with a vertex shader.
-
https://wiki.multitheftauto.com/wiki/GetCameraMatrix: That must be the cause, it only returns the camera matrix if it was set using setCameraMatrix.
-
/ % math.floor math.ceil
-
# operator returns the index before the first index with a nil value. That is, table[#table+1] is nil. So if you don't put all values starting at index 1 and incrementing by 1, # returns the index before the first gap. For example, if you set values at indices 1, 2, 6, 8, 9, then # will return 2 because table[3] is nil.
-
Coroutines are threads that can suspend their execution until they are resumed: http://www.lua.org/manual/5.1/manual.html#2.11
-
Does MySQL module return the results without waiting for them to become available?
-
And intrusive scripts that are listed in the server's meta file could be ran. The first step towards security would be disabling arbitrary memory writing by CLEO. Which would take away most of its power and destroy the whole purpose of such idea. I've never used these functions, their documentation implies that all parts having a frame section in DFF can be moved. I'm not sure what functions you're talking about, since neither components nor position/rotation of vehicle seem to be related to path designer tools...
-
It wouldn't "take MTA to the next level". Giving the servers ability to allow/disallow CLEO modding by players (just like other client-side mods can be allowed and disallowed) would be okay. It wouldn't be revolutionary (since they're still just client-side mods and players could install whatever they want for themselves), but it would give the players more modding freedom, provided that server allows CLEO mods. On the other hand, allowing the servers to install CLEO mods for clients would be a big security disaster. setVehicleComponentPosition setVehicleComponentRotation I don't see "train track switching" in the video you gave. All I see is another train route. I'm not sure if modded train track files can be allowed by the server, but doing so would result in crappy sync anyway. MTA scripting, on the other hand, allows full control over vehicle's movement. Scripts can set vehicle's position, rotation and velocity, and that means full control. I once made a script (though I don't have it anymore) that made the trams drive on both tracks in SF and since server was aware of tracks, the trams didn't need client-side syncing to move. With more scripting, branched tracks could be made. That's it. Pure MTA, no CLEO. As you can see, MTA has more possibilities than you think. And what it does, it does with security and sync.
-
Actually, the suggestion makes a lot of sense, even without considerations like "what it is useful for". It's more universal than loading from file because it not only can be used to replicate the same loading from file, but also do more. Whereas doing vice-versa (creating a file, writing the data and loading from that file) is more of a workaround way because it involves the task which is logically not necessary (writing the data from memory to file just to read it back from file to memory) and needlessly slower.
-
Ped stats, weapon ammo, animations and some other stuff are only visible if they were set since the last stream in.
-
It doesn't make much sense to send the data to server right before quitting. Even if it seemed to work, what guarantees that the data won't be lost on the way to server and have to be resent again? Then the client would have to wait until all data is delivered before quitting. What if connection is lost? Then the event will never be triggered. I don't see much use in sending some data from client to server upon quit, anyway.
-
https://wiki.multitheftauto.com/wiki/GetElementMatrix Look in the examples for getPositionFromElementOffset
-
What is "new GTA map"? How do you define it, "new GTA map"?
-
https://community.multitheftauto.com/index.php?p= ... ls&id=2540 or http://crystalmv.net84.net/pages/script ... attach.php exports.bone_attach:attachElementToBone
-
'loadfile' doesn't download any files. 'loadfile' loads the specified file as a function and returns it. It doesn't even work in MTA, it's disabled for security reasons because it loads the file from any specified path, not limiting it to resources directory. Instead, MTA file functions have to be used to read the contents of file into the string and load them as a function using 'loadstring'.
-
Thanks, but I'm not sure if I can do this job well With great power comes great responsibility, and I wasn't sure what's what with that action that went down here But based on what I saw, I think manve1 and Grafu can take care of things, so I vote for them.
-
SELECT LAST_INSERT_ID()
-
table.insert inserts the value into first empty field under integral key starting from 1. That is, if the table is empty, 'table.insert(serials, serial)' will do the same as 'serials[1] = serial', second time it will do the same as 'serials[2] = serial', and so on. Your checkPlayer function, on the other hand, gets the value from table under the value which is nil, since 'serial' variable is not defined. Which means 'serials[serial]' is nil.
-
getGroundPosition isLineOfSightClear processLineOfSight
-
This is the attitude I don't like. Such area like 800x600 has enough space to display lots of stuff. As for myself, I use 1366x768, but I designed my server's GUI to fit all resolutions, and while some details might be harder to read at 640x480, the GUI is still usable without problems at this resolution. It's not like 800x600 is too small. It's more like the objects displayed are too big.
-
"onPlayerDamage" or "onClientPlayerDamage" killPed