Jump to content

Negriukas

Members
  • Posts

    71
  • Joined

  • Last visited

Everything posted by Negriukas

  1. The problem right now is that it keep applying the shaders for old textures too, i mean that if i was in red team and spawned a hydra it apply the red paintjob and if i left the red team and spawned hydra, it doesnt apply the paintjob(normal) but when i join blue team and spawn hydra, it apply the paintjob for the current hydra and the first spawned hydra that was supposed to stay red, thanks
  2. Doesnt make any difference.. @DNL Yes it is a vehicle element, created by creatVehicle
  3. Hi, Whats wrong with this? I'm trying to apply a paintjob to hydra and if player was in like example 'Blue team' it should apply a paintjob to hydra with the specified texture 'hydrabody256-blue.png' and if i was in another team lets say 'Red team' it should apply a paintjob to hydra with this texture 'hydrabody256-red.png' , It works but it apply the paint job for all hydras except the default hydras, Hope you understand. Client: myShader = dxCreateShader( "hello.fx" ) red = dxCreateTexture("hydrabody256-red.png") blue = dxCreateTexture("hydrabody256-blue.png") addEvent("applyHydraTexture", true) addEventHandler("applyHydraTexture", root, function(vehicle, tex) local thePlayer = source local theVehicle = vehicle if thePlayer and theVehicle then if tex == 'Red' then engineApplyShaderToWorldTexture( myShader, "hydrabody256",getPedOccupiedVehicle(thePlayer) ) dxSetShaderValue(myShader, "gTexture", red) elseif tex == 'Blue' then engineApplyShaderToWorldTexture( myShader, "hydrabody256",getPedOccupiedVehicle(thePlayer) ) dxSetShaderValue(myShader, "gTexture", blue) end end end ) Server: if vehicleID == 520 and getPlayerTeam(source) then if getTeamName(getPlayerTeam(source)) == 'Red team' then texture = 'Red' elseif getTeamName(getPlayerTeam(source)) == 'Blue team' then texture = 'Blue' end return triggerClientEvent(source, 'applyHydraTexture', source, vehicle, texture) end
  4. Negriukas

    dxDrawText

    Hello folks, I'm planning to make something with dx functions but i have no idea how to get one thing, I'm trying to draw a text representing where the bullet hits with onClientPlayerWeaponFire and dxDrawText, but i guess onClientPlayerWeaponFire has 6 args (starting positions and ending positions) So is there a way to draw this text on the screen without drawing text in 3D but in screen? Thank you Regards
  5. Negriukas

    Events

    To check if bullet hits the player
  6. Negriukas

    Events

    Hello is there an event where the fired weapon bullet is defined as source? Thanks in avance
  7. Negriukas

    Question

    Let's say i have 20 mod in a folder, txd and dff, which makes them 40 file, I have to spam { 'txd','cars/infernus.txd','411'}, { 'dff','cars/infernus.dff','411'}, { 'txd','cars/name.txd','id'}, { 'dff','cars/name.txd','id'}, { 'txd','cars/name.txd','id'}, { 'dff','cars/name.txd','id'}, all the time? Is there any to get automatically the files from 'cars' folder and insert in a table etc...
  8. Negriukas

    Question

    That's what i meant by 'spamming over and over', and it wont help
  9. Negriukas

    Question

    Hi, Is it possible to get all a specified folder files and insert them in a table with 3 arguments, {'file type(txd,dff,col)', 'path', id} I'm working on a HTTP Mod Loader and too lazy to spam over and over and over
  10. Is is possible to change original GTA SA projectiles velocity?
  11. Negriukas

    Compiler

    Hello is there a fast compiler that i can use with a bat file or command line etc in stead of going to site and compiling, thanks.
  12. Hello there, Is it possible the get the death reason of a random wasted guy? Like rammed, exploded, and etc I saw death reasons, But currently i'm making some edits on Killmessages scripts, It doesn't detect when a wasted guy got rammed or killed by a jet (hydra) it just outputs the weapon icon that he selected from freeroam panel, Thanks
  13. I will send it to you in Private Message, I don't want my code to be shared everywhere
  14. Hi, how i can remove an event handler triggered using 'triggerEvent' in server side? I already tried with removeEventHandler but it doesnt remove, any help?
  15. Negriukas

    help

    Hi, how i can get the first letter of a specified player name? thanks.
  16. Negriukas

    Question

    Actually i'm talking about *using customized GTA SA Files* and not so far that ped.ifp is one of them and i guess it can be loaded, i saw anticheat guide and i didnt understand
  17. Negriukas

    Question

    Hello, Is it possible to allow client to use his customized ped.ifp? If it's possible showing me an intro or telling how would be appreciated, thanks.
×
×
  • Create New...