Jump to content

NegativeIQ

Members
  • Posts

    29
  • Joined

  • Last visited

Recent Profile Visitors

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

NegativeIQ's Achievements

Advanced Member

Advanced Member (8/54)

5

Reputation

  1. Do you know name of the algorithm? If you do post the name because its not that easy to make each number repeat only three times. Do you know name of the algorithm? If you do post it.
  2. https://community.multitheftauto.com/?p=resources&s=details&id=3716 And its just one function SetVehicleHandling with multiple "types" as parameter - see example on wiki.
  3. @AleksCorethen you have no choice but to send multiple queries. And by the way just so that someone doesnt say im wrong, there are some languages or plugins/extensions for "things/languages" that allow sql multi query but its highly discouraged since its more trouble than its worth and it actually quite hard to sanitize from sql injection. So in the end its like you dont have a choice but to simply send multiple queries (and its also easier to handle errors these way). Also considering that we are talking about mysql and how it works, when you send queries one after another and only change values it should reuse previous query cache so second one would be allot faster (but that could also depend on mysql configuration). Feel free to loop thru all players while using dbQuery, its a non blocking function (wont pause code execution while waiting for mysql response). And since you are just updating and dont care about result (there is none) just use dbFree right after dbQuery function. (check dbQuery wiki for more info)
  4. You can use same IN statement for update same way as you use it for select. UPDATE `race_stats` SET `Info`=2, `Info5`='SomeString' WHERE `playerID` IN(??) Since these topic is about tips, my tip is to always escape table and field names in mysql to avoid errors (see how i use tilde and single quotes in that code). Also escape any kind of user input.
  5. You wont find it as resource since it depends from car to car. And before i say anything you will probably need to uv remap models yourself. Also nobody is gonna make it for you. First glass texture has to be unique on vehicle, and that means it can not be shared with anything else (Ex: SA elegy shares same texture for lights and windows ). Second thing you need is a simple shader that replaces texture, in your case to RGBA color. By the way you can use find texture name shader from wiki to find out if windows are sharing texture with anything else.
  6. NegativeIQ

    Ped sync

    Hey folks, just a quick questions about peds (not players). If ped's sync interval is 400ms (default) is there anything else sent every 400ms except https://github.com/multitheftauto/mtasa-blue/blob/master/Client/mods/deathmatch/logic/CPedSync.cpp ? Also is every info always sent (like pos,velocity,hp,armor...) or just the ones that have changed?
  7. NegativeIQ

    Data and Wifi

    You cant, 3G router is located at some ISP tower and only they could do that but they wont since its a security risk, and you are probably sharing single IP with allot of people. If you need to test something with a few friends you could use Hamachi (free up to a 5 people in a single network - multiple network's are possible) and just use hamachi IP to connect to server, downside is that everyone needs to have hamachi to play but upside is a bit lower ping due to tunneling (dont think you will notice it).
  8. 1.Im pretty sure even 100000 collision shapes would not make your server/client lag. 2.If my logic serves me right. Collision shapes created on a client will trigger handler (callback) only on client side. And collisions created on server side only handler on a server. Since player has to send his information like position every few milliseconds to server server, server can perform its own check on server side so i dont think there would be additional data transfer. Also sending information from client to server about triggering something does not make server eat all the network speed. Problems are syncing things like position, animation, speed, camera...Things that are sent each few milliseconds. Calling a simple trigger can not impact on any server with a decent network speed, specially since its download and not upload.
  9. Hey folks, i know i can change textures with a shader. But can i replace model? And dont say to use replace dff function, it has to be with a shader.
  10. Did you even try to search? Here is one: https://forum.multitheftauto.com/topic/74025-rel-mod-downloader-v-121-out-now/
  11. Decided to mess around a bit so i tested code and everything is fine except that when you are looking behind projectiles are launched in in opposite direction from the turret.
  12. https://luac.multitheftauto.com change https to http. I think your curl does not support secured connections or it require some config.
  13. That does not seem right if you (your friend) did not change your elegy model. Take a look at these elegy template: http://www.gtagaming.com/images/mods/1298686778_elegytemplate.jpg.th?400x400 As you can see it should have taken effect on parts. May i ask you if you used shaders to change paintjob? That may explain why it did not take effect on a parts (but then again it does not since they all use same texture)
  14. You need to use a shader for that. Just google for mtasa shader texture replace. There is plenty of topics on these. And you can find texture name with https://wiki.multitheftauto.com/wiki/Shader_examples#Texture_names or simply just open TXD file and find texture you want to replace inside (i guess its faster since you gonna need to extract and edit it anyway) EDIT: Here is what you are looking for https://forum.multitheftauto.com/topic/30181-helpreplace-car-paintjobs/#comment-307119
  15. Select type to All files and save it as myserver.lua EDIT: Since you will be working with many files i suggest you to show file's extensions in windows. Just google it. Then you will be able to rename your files and their extension with a double click on file name.
×
×
  • Create New...