- 
                Posts2,947
- 
                Joined
- 
                Last visited
Everything posted by JR10
- 
	You must load the TXD and import it first before loading the DFF.
- 
	Car models yes, Skil? you mean skin? no replacing skin models are not supported yet, building / objects yes. Replacing Car models:You have the TXD and the DFF. meta.xml: <file src='infernus.txd' /> <file src='infernus.dff' /> client.lua --client side local txd = engineLoadTXD('infernus.txd') engineImportTXD(txd, 411) local dff = engineLoadDFF('infernus.dff', 411) engineReplaceModel(dff, 411) 1.You must load and import the TXD before loading the DFF. 2.You must specify the model of the replacement when you are loading the dff example: local dff = engineLoadDFF('infernus.dff', 411) 411 the model of infernus is specified here when loading the DFF
- 
	We don't give away scripts you need to try yourself first and then ask for help with your code.
- 
	It just that it's not really encouraging to help you when you say "I DON'T CARE ANYMORE!".
- 
	No problem.
- 
	Try this: Spieler = getRootElement() function BindAbility( thePlayer ) bindKey( thePlayer, "1", "down", Abilities ) setElementData( thePlayer, "power_fire", true ) setElementData( thePlayer, "power_energy", 100 ) setElementData( thePlayer, "power_level", 5 ) end addCommandHandler( "test2", BindAbility ) function Abilities( player ) if ( getElementData( player, "power_fire" ) == true ) then if ( getElementData( player, "power_energy" ) > 19 ) then setTimer( setElementData, 1500, 1, player, "power_fire", true ) setElementData( player, "power_fire", false ) setElementData( player, "power_energy", tonumber( getElementData( player, "power_energy" ) ) - 20 ) outputChatBox( "Jetzt seit ihr dran!", player, 155, 155, 0 ) px, py, pz = getElementPosition( player ) detec = createColSphere( px, py, pz, getElementData( player, "power_level" ) * 1.5 ) victims = getElementsWithinColShape( detec, "ped" ) destroyElement( detec ) for index, victim in ipairs( victims ) do if victim ~= getLocalPlayer() then x, y, z = getElementPosition( victim ) createExplosion( x, y, z, 0 ) end end end else outputChatBox( "Ich habe nicht genug Eve im Blut!", player, 155, 155, 0 ) setTimer( setElementData, 2000, 5, player, "power_energy", tonumber( getElementData( player, "power_energy" ) ) + 20 ) end end
- 
	Spent the last 2 hours trying to figure out this without any success. I want the user when he joins my irc channel sets his mode +v automatically. I tried ircRaw, ircSetChannelMode, ircSetUserMode but didn't work it returns false. I just want to know how to set the player's "level" or mode (irc modes like: +v +o +a +hp -a -v -o). Thanks in advance.
- 
	No problem, good luck.
- 
	setCameraMatrix There is also a resource for this here: https://community.multitheftauto.com/index.php?p= ... ls&id=1603
- 
	Tutorial: https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
- 
	Can you show us the code you made so far?
- 
	So the wiki should be updated objects is added.
- 
	No i mean the function: function visible (player)
- 
	It's a function x, y, z will be defined when he uses it. playerSpawnAt(source, 2031, -1405, 17.4)
- 
	I tested it, it returns 0 if no upgrade is added to the slot.
- 
	local Teams = { [1] = 'First Team Name', [2] = 'Second Team Name' } addEvent("Random",true) addEventHandler("Random",getRootElement(), function() if (source) then local rand = math.random(1, 2) if getTeamFromName(Teams[rand]) then setPlayerTeam(source, getTeamFromName(Teams[rand])) spawnPlayer(source, x, y, z, 0, math.random(0,288),0, 0) fadeCamera(source, true) setCameraTarget(source, source) end end end)
- 
	I think that setElementAlpha is for objects too, since i saw somewhere someone used it.
- 
	Good job, and good luck finishing it.
- 
	Maybe this getVehicleUpgradeOnSlot I never used this function, but i guess you can use it to check if there is an upgrade on the slot.
- 
	LOL math.random? and you are using it with teams variables? You could make a table with the teams like this local Teams = { [1] = 'First Team Name', [2] = 'Second Team Name' } addEvent("Random",true) addEventHandler("Random",getRootElement(), function() if (source) then local rand = math.random(1, 2) setPlayerTeam(source, getTeamFromName(Teams[rand])) if (source) and (Teams[rand]) then spawnPlayer(source, x, y, z, 0, math.random(0,288),0, 0) fadeCamera(source, true) setCameraTarget(source, source) end end end)
- 
	Jaysds1, changind the variable to thePlayer won't differ. And where is visible function used.
- 
	That's from the onClientPlayerDamage page so can't it just be: function nodamage(attacker, bodypart) if getElementType(attacker) == 'vehicle' then cancelEvent() end addEventHandler("onClientPlayerDamage", getLocalPlayer(),nodamage)
- 
	Where is marker1 defined?

 
        