Jump to content

TheBull

Members
  • Posts

    23
  • Joined

  • Last visited

Details

  • Gang
    Rage Storm

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

TheBull's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. I know what do you mean,but i dont even get any errors addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local texture = dxCreateTexture ( "images/hydrabody256.jpg", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "hydrabody256" ) end )
  2. i made it like this : dxSetShaderValue(replace.fx, 'texture0', hydrabody256.png) and got this error : attempt to index global 'replace' (a nil value)
  3. Not working , the error : bad argument @ 'dxSetShaderValue' [Expected material at argument 1,got nil.
  4. hydrabody256 : http://postimg.org/image/95lduq92b/ hydradecal : http://postimg.org/image/fjcb3yewl/
  5. do you mean this? texture gTexture; technique hello { pass P0 { Texture[0] = gTexture; } }
  6. Helloo,I made a texture load script by looking to (engineApplyShaderToWorldTexture) in the wiki,but somehow it doesn't load the texture i want to load,it just becomes a clean white hydra,not customized or not even the original one,could you guys help me? Here is the client.lua : myShader = dxCreateShader( "replace.fx" ) engineApplyShaderToWorldTexture( myShader, "hydrabody256" ) ----------------------------------------------------------------- myShader = dxCreateShader( "replace.fx" ) engineApplyShaderToWorldTexture( myShader, "hydradecal" )
  7. Still not working,no errors tho.
  8. Helloo Guys. I've made a script to creat a rhino for vip players only but it's not working dont know why ,and when i spawn the vehicle i can't enter the vehicle,here are my codes : Client : function scriptCreateTank ( commandName ) local luckyBugger = getLocalPlayer() local x, y, z = getElementPosition ( luckyBugger ) createVehicle ( 432, x + 7, y, z + 2 ) end addCommandHandler ( "tank", scriptCreateTank ) addEvent("creatTank", true ) addEventHandler("creatTank", getRootElement(), scriptCreateTank ) Server : function creatVehicleCommand ( playerSource, commandName ) local acc = getPlayerAccount (playerSource) if acc and not isGuestAccount(acc) then local accName = getAccountName (acc ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then local theTriggerer = getPlayerName ( playerSource ) if commandName == "tank" then triggerClientEvent (root, "creatTank") end end end end addCommandHandler ( "tank", creatVehicleCommand )
  9. TheBull

    [HELP] VIP

    Thanks alot,it's working.
  10. TheBull

    [HELP] VIP

    Didn't work,could you tell me where should i replace it with? , Because i replaced it with all "playerSource"
  11. TheBull

    [HELP] VIP

    And i got another problem , when a vip player plays these sounds only vip player can hear it,and normal players can't here it,is there a way to make non-vip players can hear them ?
  12. TheBull

    [HELP] VIP

    Thank you guys for your help , I really appreciate that,one more question i disabled the Rhino's and hydra's and hunter's and jetpacks in my freeroam , and i want vip players be able to spawn these vehicles and get jetpacks,could you give me what functions and events should i use? I'm really sorry for asking alot , Once again thanks.
  13. TheBull

    [HELP] VIP

    fools command is not working again , When i type the command (fools) it shows an error here it is : Bad 'sound/player' pointer @ 'setSoundVolume'(1)
×
×
  • Create New...