Jump to content

طلب مساعدة


Recommended Posts

أستخدم الشادر ض1 , 

5 minutes ago, #BrosS said:

sql or database or setaccountdata

عشان تتحقق اذا معه سكن وتحفظه

وعشان تتحقق من السريالات


if getPlayerSerial(player) == "سريال " then

او اني مو فاهم فكرتك

 

 

51 minutes ago, Abu-Solo said:

تسوي جدول فيه سريالآت

وبعدين تسوي تحقق من السريال

...

 

هو قصده أن شخصيه معينه , تكون لسريال او اكثر , بحيث ان محد يقدر يأخذها

مأينفع TxD - setElementModel

يستخدم وزيفه الشادر

باي 

  • Like 2
Link to comment
4 hours ago, #Soking said:

أستخدم الشادر ض1 , 

 

هو قصده أن شخصيه معينه , تكون لسريال او اكثر , بحيث ان محد يقدر يأخذها

مأينفع TxD - setElementModel

يستخدم وزيفه الشادر

باي 

ممكن رابط شرح للشادر

Link to comment

shader.fx

Shaders for world textures

Here are a couple of examples of shaders to use when replacing world textures with engineApplyShaderToWorldTexture

Simple

This shader just replaces the texture and allows GTA to control all the render states.

 
  1. //-- Declare the texture. These are set using dxSetShaderValue( shader, "Tex0", texture )
  2. texture Tex0;
  3.  
  4. technique simple
  5. {
  6. pass P0
  7. {
  8. //-- Set up texture stage 0
  9. Texture[0] = Tex0;
  10.  
  11. //-- Leave the rest of the states to the default settings
  12. }
  13. }

______________________________________________________________
Texture names

200px-TexNames.jpg
 
Texture names

Download shader_tex_names.zip

This resource is only a tool, and doesn't do anything pretty. It shows a list of the current visible texture names, and highlights the selected texture. Ideal for finding a texture name to use with engineApplyShaderToWorldTexture.

num_8 shows/hides the texture list, num_7 and num_9 step through the list, and 'k' copies the current texture name to the clipboard.


-------------------------
example  !
-- c.lua
myPlay = triggerServerEvent("mySerial") -- function triggers server !
ped =  setElementModel(myPlay,16)
addEventHandler("onClientResourceStart", resourceRoot, function(ped) -- up !
    local shader = dxCreateShader("shader.fx") -- the shader Effect File(.fx) file
    engineApplyShaderToWorldTexture(shader, "bmyap",ped) -- The resource shader_tex_names can help in finding the names of world textures.
    dxSetShaderValue(shader, "Tex0", dxCreateTexture("img/1.png")) -- This sets a named parameter for a shader element  & The filepath of the image
end
)

----
--s.lua

addEvent ( "mySerial", true )
addEventHandler("mySerial",root,function(player) -- Event system 
    if getPlayerSerial(player) == "text serial" then -- your serial
       outputChatBox ( "Done") -- chat say Done
	end
 end)   

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...