Jump to content

nasserdfdd

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by nasserdfdd

  1. go go go toggleControl onClientPlayerWeaponSwitch
  2. i get this error warrning test\server.lua:3: bad argument @ getplayeraccount' expected element at argument 1,got boolean seond test\serverlua:4: attemept to concatentate local 'accname'(a boolean value) and the veh mod is not getting nor they are not kicking me from veh
  3. ok meta server function permission (player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then end end addEvent("check",true) addEventHandler("check",root,permission) client function enterveh () triggerServerEvent("check",localPlayer) txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh )
  4. i get this error warrning test\server.lua:2: bad argument @ getplayeraccount' expected element at argument 1,got nil warrning test\server.lua:2: bad argument @ getplayername' expected element at argument 1,got boolean seond test\serverlua:3: attemept to concatentate local 'accname'(a boolean value)
  5. warrnign test\server.lua:3: bad argument @ getplayeraccount' expected element at argument 1,got boolean seond test\serverlua:3: attemept to concatentate a boolean value and they get me out of vehicle i get the same error
  6. i fixed it and i got this error warrnign test\server.lua:3: bad argument @ getplayeraccount' expected element at argument 1,got boolean seond test\serverlua:3: attemept to concatentate a boolean value and they get me out of vehicle
  7. it does not mod the vehicle when i enter nor when i am out of vehicle there is no errors edit : i worte debug script 3 then i found the following error loading script failed:test\client.lua:8:(to close function at line 2) near else
  8. so can any one help i want every one can enter the infernus but the mod only is made for acl admin is it possible so pls any one give me example
  9. pls help all have the vehicle mooded and there is error warrning : test\server.lua:2: Bad argument @ 'addEventHandler' [Expected element at argument 2,got nil] so anyone pls help
  10. every one can see the car if he is out in sider the car and if he is admin or no why pls help
  11. bad argument @ 'addeventhandler' [expected element at argument 2 got nil i get this eroor and i dont get any mod edit i now see all car mooded let try to reconnect with no admin right
  12. ok i want admin to see his skin and player see their skin
  13. i already told u so please tell me how
  14. can u give me any simple example
  15. sorry can u make it for me meta "nasser." version="1.0" name="inferus mod for admin" type="misc" /> inf_c.lua function enterVehicle () if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then txd = engineLoadTXD("infernus.xd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) else outputChatBox("Only acl admin have shader", 0, 255, 0, false) end end addEventHandler ( "onPlayerEnterVehicle", getRootElement(), enterVehicle ) can u make it for me cuz i did not understand u edit:i want the mod only for acl admin but every one see the modded of the admin vehicle when he enter it if u did not understand pls tell me
  16. hi all so i made a vehicle mod for a people with acl admin but when i start and enter veh no error or change in vehicle script function enterVehicle () if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then txd = engineLoadTXD("infernus.txd", 411 ) --this is veh id engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) else outputChatBox("Only acl admin have shader", 0, 255, 0, false) end end addEventHandler ( "onPlayerEnterVehicle", getRootElement(), enterVehicle )
  17. first hi all so idea to make an record button in mta map editor so instead of scripters to make fade camera and freeze vehicle we can a simple like a recording some gameplay and put it as video as mta now support watching video and flash player sorry if iam wrong or if it is a bad idea
  18. hi all so i made personal skin mod so how can i make it for vehs i need some one to give me any example pls server addEvent("skins.SonApplyToAllServer", true ) function applyitdude(val, player) triggerClientEvent(root, "skins.onApplyToAllServer", root, val, player) end addEventHandler("skins.SonApplyToAllServer", root, applyitdude) addEvent("skins.SunApplyToAllServer", true ) function unapplyitdude(val, player) triggerClientEvent(root, "skins.unApplyToAllServer", root, val, player) end addEventHandler("skins.SunApplyToAllServer", root, unapplyitdude) client shaders = {} names = {} textures = {} applied = {} plrs = { { acc = "test", texture= "test.png", shader= "texture.fx", num = 1, worldname = "cwmohb2" }, } addEventHandler( "onClientResourceStart", resourceRoot, function() for i,val in ipairs(plrs) do perfectname = val.acc..""..val.num textures[perfectname] = dxCreateTexture ( val.texture ) shaders[perfectname] = dxCreateShader( val.shader,999999, 0, false, "ped" ) names[perfectname] = val.worldname dxSetShaderValue ( shaders[perfectname], "Tex0", textures[perfectname] ) -- engineApplyShaderToWorldTexture ( shaders[perfectname], val.worldname ) --bit of sanity checking if not shaders[perfectname] then outputDebugString( "Could not create shader. Please use debugscript 3" ) destroyElement( textures[perfectname] ) return elseif not textures[perfectname] then outputDebugString( "loading texture failed" ) destroyElement ( shaders[perfectname] ) tec = nil return end end end ) function groupskinapply(cmd,num) local grp = getElementData(localPlayer,"accname") local perfectname = grp..""..num if not shaders[perfectname] then exports.trivia:sMessage("No custom shader found!",255,0,0) end if not grp then outputChatBox("You need to login!",255,0,0) end if grp and grp ~= "" and shaders[perfectname] then if applied[perfectname] then triggerServerEvent("skins.SunApplyToAllServer", root, perfectname, theplayer) applied[perfectname] = nil return end theplayer = localPlayer val = plrs[1] applied[perfectname] = true triggerServerEvent("skins.SonApplyToAllServer", root, perfectname, theplayer) exports.trivia:sMessage("Your custom skin has been applied",0,255,0) end end addCommandHandler("skinshader", groupskinapply) addEvent("skins.onApplyToAllServer", true ) function applyitdude(val, player) bool1 = engineApplyShaderToWorldTexture ( shaders[val], names[val], player ) if not bool1 then outputChatBox("",255,0,0) end end addEventHandler("skins.onApplyToAllServer", root, applyitdude) addEvent("skins.unApplyToAllServer", true ) function unapplyitdude(val, player) bool1 = engineRemoveShaderFromWorldTexture ( shaders[val], names[val], player ) if not bool1 then outputChatBox("",255,0,0) end end addEventHandler("skins.unApplyToAllServer", root, unapplyitdude)
  19. hi all so i want to make a script that make the player which is not in any team set his team to Civilian so can any one give a script like this or an example
  20. u did not understand me i mean i want that admin can not build anywhere except if they put the object on a id of a floor for example did u get it if yes pls tell me how
  21. hi all so i have this script i want to make it custom gui it is a vehicle spawner client CODE REMOVED BY Solidsnake14
×
×
  • Create New...