-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
Voted, hope so.
-
addEventHandler ( "onClientRender" , root , function ( ) if not startTick then startTick = getTickCount ( ) end if not frames then frames = 0 end frames = frames + 1 currentTick = getTickCount ( ) if currentTick - startTick >= 1000 then setElementData ( localPlayer , "fps" , frames ) startTick = nil frames = nil end end ) Now it sets the localPlayer's element data 'fps' to the current FPS, updates every second. You should probably add a scoreboard column.
-
Did you really have to bump the topic?
-
I contacted your support about AlertPay, It's not clickable when you come to paying, only PayPal and oneBip are. I hope you can fix that ASAP, I want to test your host.
-
Don't you look at the script? It's clearly not updating. function myHealth() exports.scoreboard:scoreboardAddColumn ( "Health" ) local playerHealth = getElementHealth ( localPlayer ) setElementData ( localPlayer, "Health", math.floor(playerHealth)) setTimer ( function () local playerHealth = getElementHealth ( getLocalPlayer() ) setElementData ( localPlayer, "Health", math.floor(playerHealth)) end, 3000 , 0 ) end addEventHandler ( "onClientResourceStart", resourceRoot, myHealth)
-
Just do it in a function then: setTimer(function() exports.guiText:outPutGuiText("*You hear ringing in your ears and you cant hear anything*",255,0,0) end,2000,1)
-
He already specified the attachedTo element to GUIEditor_Button[1].
-
I saw a video before about that, made by CrystalMV, Am I right?
-
If I'm right, you can do it using shaders to replace the tag texture, I will do some tests.
-
If I'm right, you need to remove the player from the vehicle. addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if (source == GUIEditor_Button[1]) then local theVehicle = getPedOccupiedVehicle(localPlayer) if not theVehicle then setElementPosition (localPlayer, 1523.9138183594, 1527.1204833984, 10.2602405548 ) return end removePedFromVehicle ( localPlayer ) setElementPosition (theVehicle , 1523.9138183594, 1527.1204833984, 10.2602405548 ) warpPedIntoVehicle ( localPlayer, theVehicle) end end)
-
addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if (source == GUIEditor_Button[1]) then local theVehicle = getPedOccupiedVehicle(localPlayer) setElementPosition (localPlayer, 1523.9138183594, 1527.1204833984, 10.2602405548 ) setElementPosition (theVehicle , 1523.9138183594, 1527.1204833984, 10.2602405548 ) warpPedIntoVehicle ( localPlayer, theVehicle) end end)
-
cancelEvent? Like this: function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if (weapon == 31 and hitElement and getElementType(hitElement)=="vehicle") then -- If the weapon is a M4 and the element hit is a vehicle cancelEvent() if getElementHealth(hitElement) >= 1000 then return end -- If the vehicle health is 1000%, don't heal it. setElementHealth(hitElement, getElementHealth(hitElement)+100) -- Set the vehicle health +100%. end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc )
-
local marker = createMarker ( 2392.6950683594, 2043.826171875, 10.8203125, 'cylinder', 1.0, 255, 255, 255, 255 ) addEventHandler ( "onMarkerHit" , marker , function(hElement,matchingDim) if not matchingDim then return end if getElementType ( hElement ) ~= "player" then return end --setElementPosition ( hElement, posX , posY , posZ ) setElementInterior ( hElement , 9 ) end) Replace posX , posY , posZ with the position you want the player to be teleported to, and uncomment it.
-
You use functions to do things. setElementModel
-
Use createElement, setElementData With saveMapData.
-
Unlike scripts, maps can't be compiled, players will steal maps easily.
-
If you're in admin group and the resource is running, then it should work fine. Maybe I will make a video later.
-
That's why I'm currently translating the wiki.
-
It worked as allowing general.http, and disallowing the resources I don't want them to access. Thanks.
-
A new forum style would be awesome.
-
It works for all resources when I add general.http Here: <group name="Everyone"> <acl name="Default"></acl> <acl name="Web"></acl> <object name="user.*"></object> </group> <acl name="Web"> <right name="general.http" access="true"></right> <right name="resource.webchat" access="true"></right> </acl> That allows access to all resources. But I only want access to a certain resource 'webchat'. I removed general.http, now it asks for all even webchat. Thanks.
-
No need for hex code, since he only wants it yellow.
-
I don't know much about the Web Interface, but I made a simple web chat resource. But it asks for authentication, I don't want that, I want normal players to be able to access it. Thanks in advance.
-
You don't know how to change the output color? Read the wiki addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if source then if (bodypart == 4) then outputChatBox("#Outch ! " ..getPlayerName(killer).. " has shot in your ass !", source, getRootElement(),255, 255, 0, true) elseif (bodypart == 9)then outputChatBox("#OWNED ! "..getPlayerName(killer).." has shot in your head !", source, getRootElement(), 255, 255, 0, true) else outputChatBox(getPlayerName(killer).."# has kill you ! Now Kill him Noob-_-'", source, getRootElement(), 255, 255, 0, true) end end end) addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if killer then local stars = getPlayerWantedLevel(killer) setPlayerWantedLevel(killer, stars+1) outputChatBox("#You have kill " .. getPlayerName(source) .. ", now you have "..getPlayerWantedLevel(killer).." stars !", killer, getRootElement(), 255, 255, 0, true) end end) After getRootElement, there is 3 arguments for RGB color format.