-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
You'll have to search the script which handles the respawning.
-
I'm gonna test it, wait a minute @Extinction. Replace addEventHandler("onClientKey", getRootElement(), function(cK, cS) if cS then if cK == "mouse_wheel_up" then if moveY > 0 then moveY = moveY - 1 end elseif cK ==" mouse_wheel_down" then moveY = moveY + 1 end end end) with addEventHandler("onClientKey", getRootElement(), function(cK, cS) if cS then if cK == "mouse_wheel_up" then outputChatBox(moveY) if moveY < 0 then moveY = moveY + 1 end elseif cK == "mouse_wheel_down" then moveY = moveY - 1 end end end) I just misplaced a space and actually inverted the moving ways. @Extinction.
-
Do you have a resource called lses-system?
-
If you are searching for respawning in the hospital, then lses-system, under s_lves_system.lua, and line nr. 147 spawnPlayer(thePlayer, x, y, z, 134, theSkin, 0, 0, theTeam) Change x, y and z to the position you want.
-
Ignore that, it's not in the SQL table. if (transport==1) then x, y, z = 1742.1884765625, -1861.3564453125, 13.577615737915 r = 0.98605346679688 lastarea = "Unity Bus Station" else x, y, z = 1685.583984375, -2329.4443359375, 13.546875 r = 0.79379272460938 lastarea = "Los Santos International" end Search for something like this in your account-system under s_account_system.lua.
-
Here you are. I think it should work, not tested tho. local renderTarget = dxCreateRenderTarget(500, 15, true) -- Creating the renderTarget, 500 width and 50 height, with alpha enabled. local drawText = [[This is a multi-line text. 2nd line 3rd line]] local moveY = 0 addEventHandler("onClientRender", getRootElement(), function() if (renderTarget) then -- Checking if we have the renderTarget. dxSetRenderTarget(renderTarget, true) -- Setting the renderTarget, and clearing it every frame. dxDrawText(drawText, 0, moveY, 500, 15, tocolor(255, 255, 255, 255), 1, "default-bold", nil, nil, true) -- Drawing the text on moveY Y pos dxSetRenderTarget() -- Setting the renderTarget nil, so we are out of the renderTarget dxDrawImage(500, 200, 500, 15, renderTarget) -- Drawing the renderTarget end end) addEventHandler("onClientKey", getRootElement(), function(cK, cS) if cS then if cK == "mouse_wheel_up" then if moveY > 0 then moveY = moveY - 1 end elseif cK ==" mouse_wheel_down" then moveY = moveY + 1 end end end)
-
And which roleplay mode? Can you do a screenshot of your resources?
-
I think DayZ mode has mappings by default, so you should search it out.
-
Are you using freeroam?
-
I think it cannot be copied because the file is in use.
-
Need help with DX, positions, rotations and tables
NeXuS™ replied to Dzsozi (h03)'s topic in Scripting
Replace return items[foundItem][1] with triggerClientEvent(source, "setJunkItem", getRootElement(), items[foundItem][1]) And then client side: addEvent("setJunkItem", true) addEventHandler("setJunkItem", getRootElement(), function(itemID) foundItemImage = itemID end) I think this one should work. -
It worked fine for me. Watch out for capital. @Aaron97
-
Alright, you quoted me, but didnt write anything. @Aaron97
-
My bad. serialList = { ["yourserailhere"] = true, ["anotherserialhere"] = true } addEventHandler("onPlayerJoin", getRootElement(), function() local autoBan = serialList[getPlayerSerial(source)] if (autoBan) then banPlayer ( source, false, false, true, getRootElement ( ), 'Wypierdalaj kurwo!' ) end end) This one works totally fine.
-
Whats not working with it? Working for me: