-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
Script 75% at serverside and 25% clientside. Serverside decides which player a ped should attack, not the client. The client should only give the server the required data, so that serverside can make the right decision. The basic:
-
Because it is most likely stolen if it is not on the community... With other words, it is not on the community because he didn't want other people to have it. So... stolen and leaked. If you want to use and edit leaked scripts, enjoy yourself. But don't be so disrespectful with somebody else his code and ask permission first.
-
while is a kind of statement for a while loop. A loop is for executing the same code multiple times. and a break is for stopping an active loop. But you should not worry so much about those two. The while loop isn't required often, just once in a while under some circumstances.
-
Those errors are obvious... You should first ask permission from the owner, because this resource is afaik not on the community. Also you need permission from the owner to show this code to the public.
-
If you understand shaders, YES else NO.
-
I don't work with oop and that repeat loop is required, because you never know which element is the resourceRoot. local elementParent = vehicle -- < add here the element. repeat local elementParent_ = getElementParent ( elementParent ) if elementParent_ and elementParent_ ~= root then elementParent = elementParent_ else elementParent_ = nil end until not elementParent_ local theResourceRoot = elementParent local theResourceName = getElementID(theResourceRoot) -- get the resource name. local resource = getResourceFromName(theResourceName) -- get the resource element.
-
local theResourceRoot = --... resourceRoot from another resource ... local theResourceName = getElementID(theResourceRoot) -- get the resource name. local resource = getResourceFromName(theResourceName) -- get the resource element.
-
Issues with script load... (loadstring error)
IIYAMA replied to MisterQuestions's topic in Scripting
np. -
Issues with script load... (loadstring error)
IIYAMA replied to MisterQuestions's topic in Scripting
This might be your problem: http://www.lotrointerface.com/forums/sh ... php?t=3502 -
When I am busy with important stuff, I can't help you right away. Not that you think, I gave up on helping you... don't judge too soon.
-
Hazard lights are simply recreated with vehicle lights why use custom lights? Hazard lights: Because it gives a nice effect when doing that.
-
https://wiki.multitheftauto.com/wiki/CreateLight
-
This is the Part When i Call the outputMessage In Server Side (My Mod) So it might be not "outputMessage" , maybe it's "player:outputMessage" just like in the "business" mod server side The code from the screenshot does not have the same structure as: call(getResourceFromName("business"), "outputMessage", source, "the message bla bla bla...", 0, 245, 33) Take a closer look, it is messed up.
-
I see this:
-
Well, use the feedback I gave you on those. Because their structure are still not the same, as you said you did: call(getResourceFromName("business"), "outputMessage", source, "Server Side Message Check", 255, 0, 255)
-
I just want to see your Server.lua File.
-
https://wiki.multitheftauto.com/wiki/On ... ayerDamage element attacker, int weapon, int bodypart [, float loss ] local newHealth = getElementHealth(localPlayer)+loss-5 if newHealth > 0 then setElementHealth(localPlayer, newHealth) else setElementHealth(localPlayer, 0) -- or triggerServerSide + killPed end
-
if weapon ~= 23 and weapon ~= 3 then -- add wanted end https://wiki.multitheftauto.com/wiki/OnPlayerDamage
-
It all depends how you make them wanted. You have to prevent it from happening in the code that is responsible for it.
-
RED or GREEN if attacker and getElementType(attacker) == "player" and weapon == 23 or weapon == 3 and wanted > 0 then How to solve: (weapon == 23 or weapon == 3) if attacker and getElementType(attacker) == "player" and (weapon == 23 or weapon == 3) and wanted > 0 then
-
and from where are you testing that code? Because it seems that, that code doesn't provide a valid source element.
-
1: Are there errors/warnings? 2: >if (settings.info_messages_type == "dx") then< is info_messages_type in the meta.xml set to dx?
-
Show your edited code.
-
There is no server communication needed, since the position of the players is already synced. You need to check it per player. And use another table structure. Something like this would do: local linePoint = { [player thePlayer] = { {float x, float y, float z}, {float x, float y, float z}, {float x, float y, float z}, {float x, float y, float z} } }
