-
Posts
1,646 -
Joined
-
Last visited
Everything posted by CapY
-
Lol no errors , but explosive bullets dont work .
-
nice 12 month bump Yep , isnt it nice ?
-
Error : http://imageshack.us/f/52/exbullets.png/
-
What is not good now ? server: function bulletexplosion (hitX, hitY, hitZ) triggerClientEvent("onClientPlayerWeaponFire",weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("onPlayerLogin", root, function ( _, acc ) local accName = getAccountName ( acc ) if isObjectInACLGroup ( "user." .. getPlayerName(source), aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end ) client: function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ("bulletboom", source, hitX, hitY, hitZ ) end addEvent( "onClientPlayerWeaponFire", true ) addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer (), weaponfired )
-
Why this trigger doesnt works ? function bulletexplosion (hitX, hitY, hitZ) triggerClientEvent("weaponfired",weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("onPlayerLogin", root, function ( _, acc ) local accName = getAccountName ( acc ) if isObjectInACLGroup ( "user." .. getPlayerName(source), aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end )
-
Jacob , that's dont work. And event is not triggered to client side ( do i need client anymore? ) Client: function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ("bulletboom", source, hitX, hitY, hitZ ) end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer (), weaponfired ) And on the server there is error on 5 line . '(name)' expected near '(' Server: function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end )
-
I have downloaded explosive bullets from community and i want to make it for members only , why this dont work ? Server: function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("bulletboom",getRootElement(),bulletexplosion) function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) else cancelEvent("bulletboom",true) end end ) If client needed i will post it .
-
Varez can you post all aexec functions here ?
-
Dont hope too much .
-
Easier way .... Load GUI with guieditor and print absolute and relative position .
-
Open Play resource and edit broph.lua
-
Jacob have problems for the first time Reinstall a server or MTA and that's it , just store somewhere config, modules and resources ( if needed )
-
Stolen from who ? Ok , will done it . IDK what you have against me ( mental problems ) ...
-
Is it supposted to spawn you at the place what you save when you join ?
-
how to show it ? You just showed it .
-
Community resource . When i type invisible it's all good , but when i type it again , ped and players name shows , but blip stays hidden.
-
And this must stay in the resource : iv = 0 iv = 0 function toggleInvis( source ) if iv == 0 then iv = 1 setPlayerNametagShowing(source, false) setElementAlpha(source, 0) else iv = 0 setPlayerNametagShowing(source, true) setElementAlpha(source, 255) end end
