Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. Why not simply change model's pivot point position to 0,0,0? You can go to Hierarchy tab and choose "Affect Pivot Only" and then change its position to 0,0,0. Either set X,Y and Z spinners (bottom of the window) value to 0 or right-click them (the arrows themselves). Anyway, the problem has been solved via PM.
  2. It is now fixed in version 2.3.
  3. Add mod="deathmatch" attribute to the map node at the top of the file.
  4. What do you mean defined? They are native MTA functions...
  5. 50p

    sqlite and mta

    Are you switching subject suddenly? MySQL is little different. SQLite is easier.
  6. 50p

    sqlite and mta

    It will always appear, even if the table exists. Don't worry about that message.
  7. No, but there was a command you could use in game to display server performance. If I remember correctly, it was /shownet <1 or 0> (1 to show, 0 to hide). I think it's /netstat 1 That's what I use to get the connection data. That's the one.
  8. No, but there was a command you could use in game to display server performance. If I remember correctly, it was /shownet <1 or 0> (1 to show, 0 to hide).
  9. You seem to have no knowledge about Lua at all. It will be hard to go straight into coding your "car system"... And that's what most of beginers here do. If you can't script at all then why do you want to create scripts that advanced? I can lead you there: - https://wiki.multitheftauto.com/wiki/Main_Page - http://www.lua.org/pil/index.html - https://wiki.multitheftauto.com/wiki/Scr ... troduction - SQL functions which let you save/load data in/from SQLite DB: https://wiki.multitheftauto.com/wiki/Ser ... _functions
  10. No problem, if you have any 3ds max problems, you can PM me.
  11. It happens to every kind of vehicle (driving cars, flying helis, piloting boat, etc. haven't tested on moving objects, which are moved by moveObject). But onClientPreRender may solve the issue. setVehicleFrozen changes vehicle's position on every frame (setElementPosition in onClientRender) but I doubt it would solve the issue. Besides vehicle speed would have to be changed back to speed before setVehicleFrozen and rotation too.
  12. Yes, you select which mesh you want to be exported as collision mesh. What version of 3ds max do you use? The cube control in viewports was added in 2009 if I remember correctly which I don't have but if you have .max in 2010 format then I could try and help you with this problem or you can send me the whole map recourse.
  13. This is not just in Lua but every programming/scripting language http://en.wikipedia.org/wiki/Parameter_ ... science%29
  14. It's hard to tell from these screenshots what is wrong. What's the sphere for? Another collision mesh? Your track from underneath is transparent because there are no polygons to be rendered. Usually, collision meshes are a little bit above objects in GTA SA to prevent player foot going through the objects. Say, when you crouch, player's toes go through the collision mesh but not through the model itself.
  15. 1. Parameter and argument have connections. Parameter is present in function definition whereas argument is present in function call. function foo( param1, param2 ) -- these are parameters print( param1, param2 ); end foo( 10, 300 ) -- 10 and 300 are arguments 2. https://wiki.multitheftauto.com/wiki/Set ... tagShowing 3. Try my ped example script https://community.multitheftauto.com/index.php?p= ... ils&id=234 It also gives the peds health bar (which is the same idea for dxDrawText).
  16. It's explained pretty detailed on wiki I'm afraid. You have to understand MTA's element tree to understand it better. In the worst scenario, say what is your first language and hopefully someone would explain it to you via PM in that language.
  17. Maybe it's the problem with the meshes.. How did you export the models? Were the meshes at 0,0,0 before you exported them (dff and col)? From the screenshot it looks like the col mesh is offset.
  18. I keep saying it and I'll say it again. Custom objects functions are not perfect and even if your code is correct the script may work once and not another time. Your code is correct except for one thing: engineLoadDFF wants you to use 0 for model ID if the model you're replacing is not vehicle.
  19. fxAddSparks( 0, 0, 3, 0, 0, 1 ) Creates sparks at 0, 0, 3 which fly in Z direction (1 unit). Why don't you try the values yourself?
  20. You have to use ACL (Access Control List) that's what it is for. If you don't want it, then you can create your own admin system which is not recommended for beginners.
  21. It's hard to tell because it depends how you manage spawning players. Whether they spawn every time they die or they choose their skin after they die. They select a skin on a "selection screen" or they set their skins with commands. They best way would be to handle onPlayerSpawn and check their skin when they spawn. If the skin they spawn with is one of the skins you want to restrict you could kill them and tell them to choose different skin but if they spawn with the same skin every time (even after they die) then you'll have to modify the script which spawns them to not spawn them. You'll use hasObjectPermissionTo to check if they are admins or isObjectInACLGroup to do the same.
  22. 50p

    Settings system

    I suppose square brackets indicate numbers, so when you use get() function, it'll return number without need to convert it to a number. Double brackets are tables. No brackets = strings.
  23. You don't need to know what version of Lua MTA uses to script for MTA. What do you need to know that for?
  24. CTCCOco, for instance myself, I have no idea what this topic is about. Saying: doesn't make sense to me. onClientGUIClick is an event which can call your functions. In your function you can call other functions, eg. player function. I don't know if this helps but if it doesn't then please explain a little more.
  25. I have absolutely no idea what c bug is but to me your video shows what game should be like.
×
×
  • Create New...