-
Posts
1,312 -
Joined
-
Last visited
Everything posted by KariiiM
-
Totally,you stole these things, First thing, you stole these images design from SAUR RPG client side downloaded resources, it's made by Allentus 2pictures from STORM RPG. http://i.imgur.com/mCQNA2N.jpg Sorry but none can help you if you keep using something that you have no permissions for it
-
Some respect please we are not your personal scripting assistant , i tried to help you and what i wrote is tested and working before i post it here also it do what you're looking for ,if it doesn't works for you that's mean you failed something it's your problem then.
-
Ah you're right,i didn't take attention,so my way works only if the table is empty like that local messages = {} table.insert(messages, {'First message','Second message','Third message'})
-
My bad i forgot,i was going to change the files name edited, thanks ! it working now (tested) --client.lua local texture = { { "crosshair.png", "sitem16"} } addEventHandler("onClientResourceStart", resourceRoot, function() for i = 1, #texture do local shader = dxCreateShader("shader.fx") engineApplyShaderToWorldTexture(shader, texture[i][2]) dxSetShaderValue(shader, "gTexture", dxCreateTexture( texture[i][1])) end end) addEventHandler ( "onClientResourceStart", resourceRoot,function () setPlayerHudComponentVisible ("crosshair", true ) end) --shader.fx texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } --meta.xml
-
Does it matter? if you did them with order 1st line txd , 2nd line dff and 3rd line col ?
-
Okay, follow me step by step --Create your Meta and full it with that 1) create file name it client.lua 2) create file name it shader.fx 3)create file name it texreplace.fx note: you can change crosshair.png to your image name --After creating the files and defining them in the meta.xml, now it's the time to fill them with codes: --client.lua : local texture = { --don't forget to change this to your image.png name ! or it won't works or simply change your image to crosshair.png name { "crosshair.png", "crosshair"} } addEventHandler("onClientResourceStart", resourceRoot, function() for i = 1, #texture do --looping the table texture for create texture local shader = dxCreateShader("shader.fx") engineApplyShaderToWorldTexture(shader, texture[i][2]) dxSetShaderValue(shader, "gTexture", dxCreateTexture(texture[i][1])) end end) --shader.fx texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } }
-
--client addEventHandler ( "onClientResourceStart" , resourceRoot , function () engineReplaceCOL ( engineLoadCOL( "green_slab.col" ) ,2284) engineImportTXD ( engineLoadTXD ( "green_slab.txd" ) , 2284) engineReplaceModel ( engineLoadDFF ( "green_slab.dff" ) , 2284 ) end) --Meta
-
Is it your full code? because you did loop for pedss table and the table doesn't exist Anyway, about how to let the ped doesn't get damages, you have to cancel the event answer my first question and i can fix the code for you
-
I know you already explained so i want to show another way to use this function
-
Or this way storing all datas in one function to avoid repeating local messages = {'First message'} table.insert(messages, {'Second message','Third message'})
-
just try to replace warpPedIntoVehicle(source,limoJobVeh) to warpPedIntoVehicle(localPlayer,limoJobVeh)
-
GUIEditor = { gridlist = {}, window = {}, button = {} } function openLimoVeh() GUIEditor.window[1] = guiCreateWindow(683, 306, 305, 359, "Job Vehicle Spawner", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 23, 284, 282, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.9) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "Limo", false, false) GUIEditor.button[1] = guiCreateButton(20, 311, 98, 38, "Spawn Vehicle", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(186, 311, 98, 38, "Close", false, GUIEditor.window[1]) showCursor(true) addEventHandler("onClientGUIClick",getRootElement(),onClickBtnClose) addEventHandler("onClientGUIClick",getRootElement(),onClickBtnSpawnVeh) end addEvent("openLimoVehMenu",true) addEventHandler("openLimoVehMenu",getRootElement(),openLimoVeh) function onClickBtnClose(button,state) if (button == "left" and state == "up") then if (source == GUIEditor.button[2]) then guiSetInputEnabled(false) guiSetVisible(GUIEditor.window[1], false) destroyElement(GUIEditor.window[1]) showCursor(false) removeEventHandler("onClientGUIClick",getRootElement(),onClickBtnClose) end end end function delayed() local vehList = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if vehList == nil or vehList == false then outputChatBox("You need to select a vehicle!",0,255,255) elseif vehList == "Limo" then local x,y,z = getElementPosition(getLocalPlayer()) local limoJobVeh = createVehicle ( 409, x, y, z + 3 ) warpPedIntoVehicle(localPlayer,limoJobVeh) end end addEvent("delayedVehSpawn",true) addEventHandler("delayedVehSpawn",getRootElement(),delayed) function onClickBtnSpawnVeh(button,state) if (button == "left" and state == "up") then if (source == GUIEditor.button[1]) then triggerEvent("delayedVehSpawn",getLocalPlayer()) end end Edit: sorry i didn't see the preview post i didn't refresh the page
-
the price fit the resource ,keep the good works
-
With what? try something by yourself we gave you the light to start, so try if you failed post the code
-
It's leaked script
-
https://wiki.multitheftauto.com/wiki/Gu ... tRemoveRow guiGridListRemoveRow
-
setElementPosition or put a part of the code that's buggy, we have no idea about the problem
-
Yes you're right ,i didn't take attention as the wiki said The source of this event is the root element in the resource that started. So , since almost all of these events are client sided so you can hide the default crosshair in client side too addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function () setPlayerHudComponentVisible ("crosshair", false ) end)
-
First of all, you have to disable the current crosshair of the player. You can hide this with showPlayerHudComponent. After that, you should add an event handler with the event onClientRender whenever the user is using the control 'aim' ( getControlState if I'm not mistaken. ). In the render, you should use dxDrawImage to render the actual image. Don't forget to remove the event handler when the user stops aiming! so, you need to use NOTE: almost all of these functions are client sided only --functions guiGetScreenSize dxDrawImage getPedTargetEnd getScreenFromWorldPosition --events onClientRender or onClientPreRender for hiding the default crosshair, you have to use this code: addEventHandler ( "onResourceStart", getRootElement(), function () setPlayerHudComponentVisible ( source, "crosshair", false ) end ) ~Good luck with scripting Regards, KariM
-
Yes he mean that but he didn't explains his problem as well
-
Middle of the screen? because cursor is also in the middle
-
Ah sorry i'm wrong, i didn't think there's an function for changing player accounts name because searched for it long time ago and i didn't search well
-
Phyton already answered you, add also the addEventHandlers about animations function() if bind.State == false then -- addEventHandler Here your code bind.State= true else -- removeEventHandler Here your code bind.State = false end end
