-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
True.
-
<script src="client.lua" type="client" />
-
I don't have that script and I'm sure there are other people here who can help you with that. Speaking to the author of the resource would be the best idea, so that he can fix it and release a new fixed version.
-
What you're doing is creating new blip for every zombie every time a zombie spawns. then you end up with plenty of blips attached to all zombies. This is what you're doing: When they die you destroy only the latest blip for the dying zombie, what about the other blips that you created in the pointless loop? They stay on the map. See what you're doing wrong?
-
It depends what is in the script. Simple GUI shouldn't lag. Maybe you have some other resource which uses a render event that may slow down their fps. On my very old PC, it took about 1-2 seconds before I could open admin panel the first time but that panel is full of ui elements and when I hid it and reopened it was fine. It only happened at creation of GUI.
-
@Lloyd Logan, read Cadu12's message again. Tab adds 4 spaces, Shift+Tab removes 4 spaces but it only works if you highlight more than 1 lines. I find it annoying not being able to reverse tab just 1 line so I will report it to the lib author since he's pretty active. BTW, I will have to delay the release from this week to the next week or the week after (depending how long it will take me to fix the issues) since I found MTASE not working the way it should after using installer. Yes, I'll be using installers from now on.
-
It works if you highlight minimum 2 lines.
-
Keeping a value when the server/resource is turned off
50p replied to HeavyMetal's topic in Scripting
Save it in a database or a simple text file then load it when you need to use it. -
Or https://community.multitheftauto.com/index.php?p= ... ils&id=186
-
It doesn't really matter where you get the model from. As long as it's a 3D mesh converted to editable poly/mesh. I still can't tell you what you're doing wrong. If the game crashes even single player then files must be corrupted. The dff seems fine as it loads in DFF viewer. TXD also looks fine. Have you tried to load these without .col?
-
You must be doing something wrong. Every step is important. Describe what you're doing step by step.
-
Right, not used to race resource but just checked it and it seems only dummy elements are server-side and pickups themselves are not actual pickups but models with colshape around them.
-
function disablepickups(_,_,pickupType) local racePickups = getElementsByType( "racepickup" ); for _,v in ipairs(racePickups) do if getElementData( v, "type" ) == pickupType then -- skip this statement if you want to remove all race pickups destroyElement(v) end end end addCommandHandler("testing", disablepickups) -- /testing repair EDIT: Sorry, haven't read your last post.
-
Problem replacing the original helmet model to other object
50p replied to Mimimiguel's topic in Scripting
It's hard to say what it is from the screenshot. It looks like a texture problem or vertex ordering is different. Try to weld all the vertices that are close to each other. -
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
50p replied to HeavyMetal's topic in Scripting
Do server-side scripting as much as possible. Only do UI based scripts client-side this way your script is safer, clients don't have to download as much and last but not least everything is synced. Good luck. -
No. MTA has disabled some Lua functions due to security reasons.
-
This should explain your problem. addEventHandler ("onMarkerHit", marker, srandomveh)
-
If you're using 3DS Max then you can create COL within 3DS Max. You can check youtube for tutorials if you want to.
-
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
50p replied to HeavyMetal's topic in Scripting
Are you changing these client-side? Get in the car and run this code from admin panel: setElementDimension( getPedOccupiedVehicle( getPlayerFromName( "YOUR NICK" ) ), 2) Then this: getElementDimension( getPedOccupiedVehicle( getPlayerFromName( "YOUR NICK" ) ) ) Watch the chatbox and see if the second run will return 2. -
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
50p replied to HeavyMetal's topic in Scripting
Isn't that what you're doing when you save your vehicles? getElementDimension and getElementInterior return their current dimension and interior respectively. -
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
50p replied to HeavyMetal's topic in Scripting
I'm not using the script. I never test people's script either. I only test them after I don't see anything wrong with the code. I just looked at the mistakes he made and I quickly looked at local interior" but missed the "Interior" which I copied. @HeavyMetal, Dimension is not the same as dimension. -
Describe how you export your files and how you verify they are valid files. You can use DFF viewer to see if your model is valid. Collision File Editor to check your .col files and G-TXD or TXD Workshop to validate your .txd files.
-
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
50p replied to HeavyMetal's topic in Scripting
You SQL insert ends with: ..Interior.."',"'..Dimension..'"") but should be: ..Interior.."','"..Dimension.."'")
