Anderl
Members-
Posts
2,266 -
Joined
-
Last visited
Everything posted by Anderl
-
No, you have three errors: 1. There's no "source" parameter, source is a predefined variable in the function and it points to the player who died. 2. You didn't check the team name and the "team" and "Grove" variables make totally no sense. 3. Where is "x", "y" and "z" defined? And what's that "Grove" after "z"?
-
Notepad or any software for writing in Lua and Lua knowledge is what you need.
-
The script will ever work normally if you save in XML. But XML is not the best way for saving much data because you have to download the file, how if you have a 10mb XML file? XML is for saving little details only.
-
An ever better way to protect your Lua files is to read the Lua files in the server side and load its content with loadstring on client side. That way of protecting DFF and TXD files that 50p said is basically the same idea I had for my download manager so people would not need to wait model files download to end when they joined the server. I'm pretty sure that works.
-
I just don't recommend you getting a pre-built desktop because they're a waste of money. Building your own desktop will give you better hardware with same price.
-
No, it can't. It's just a simple shit VB program that tries to read an Excel file and do some other thing that I don't know because I didn't look at the rest of the code.
-
Just in case, i think he means this How can there be a client script as type: server? I think he means: triggerServerEvent On the other hand, wouldn't binding a new sound collide with the existing GTA sounds? He disabled horn control.
-
Nice job
-
A more efficient way ( you won't notice it, but if you add more texts it may starting lagging ) is to create an "onClientRender" event and call it when you want to draw the text. You'll still need variables, though.
-
You gotta draw the text right after calling the function and then create a timer to remove it, not create a timer to draw it first.
-
It's exactly the same. local variable = 2; print( type( variable ) ); -- 'number' variable = "Something is wrong over there..."; print( type( variable ) ); -- 'string' variable = true; print( type( variable ) ); -- 'boolean' In Lua, you can change variable types by simply changing to a value of the type you want. In C++, for example, the type of the variables are "constant" - they're set at compile time and you can't change them at runtime ( well, actually you can but you might lose precision ).
-
Don't expect people to make things for you. Also, that is really easy to do.
-
That won't solve the problem, that will just make mysql_fetch_assoc be called if the query was sucessful. True, but this was the problem, wasn't this? Well, I guess he wants to know why is him getting that problem, not how to "by-pass" it.
-
That won't solve the problem, that will just make mysql_fetch_assoc be called if the query was sucessful.
-
What do you mean? I didn't get what you said.
-
Hey, Since there's this topic I will share here the new pictures released by Rockstar Games: And one picture released in PC Guru Magazine: If you can't see the pictures fully, right click them and open direct link.
-
You should look at the roadmap for that. Custom animations is there but it is not any kind of important feature so it's assigned to 'No Target Version'.
-
This isn't a script, this is a XML file. And you have two errors: 1. What's this? /UrbanWarfare /meta.xml /UrbanWarfare.map /UrbanWarfare.lua 2. You can't spaces in node names. As CrystalMV said, you have two in your meta file. COMMANDS URBAN Warfare What the.. is this? It would be better if you posted exactly how files are in this way:
-
It isn't magic. You must open the file and click the option to compile.
-
This isn't a request room. You should either search in the community or learn Lua and develop that by yourself.
-
If you have almost none or even none experience with Lua then don't even try doing such thing. It's like wanting to race on streets when you don't even know how to start the car's engine.
-
No i use mta.dzek.eu/compiler/ It does not convert the file format Only compile the file . Yes it is the original file . Change the extension from lua to luac (don't forget to do this in the meta.xml too). File format doesn't matter, the content is the same. I remember some friend of mine having trouble compiling with SciTE even though it uses default Lua compiler ( strings passed to outputChatBox weren't shown fully, for example ).
-
Loading various models on the same vehicle
Anderl replied to DeletedAccount1111's topic in Scripting
You didn't understand the question. Threule wants to display 2 different models of 2 vehicles of the same model ID for 1 client which is not possible. You can change textures of the same model but different elements though. You can have the same model IDs with different textures for 1 client. https://wiki.multitheftauto.com/wiki/Eng ... rldTexture My bad, I thought he meant he wanted to load different models for each client but using the same vehicle. -
Yeah, I guess so. But I don't get why is there a password parameter if it's not needed.
-
I think it is better to use i5 processor and most powerful running thr game properly . I think that the processor is your problem! An i3 is basically an i5 without HT but that i3 is from the 1st generation and aren't really made for new games.
