Jump to content

givePlayerMoney don't work [working now] TNX!


denny199

Recommended Posts

WARNING: Bad arguement @ 'givePlayerMoney'

That's Saying debugscript this is my code:

werkm = createMarker ( 0, 0, 1 ) 
function geld (player) 
givePlayerMoney ( player, 1 ) 
end 
  
  
function work (player) 
setElementPosition ( player, 2610, -1228, 35 ) 
setPedAnimation ( player, "STRIP", "STR_B2C", -1, true, false, false )   
setElementModel ( player, 140 ) 
lol = setTimer (geld, 9000, 0 ) 
end 
addEventHandler ( "onMarkerHit", werkm, work ) 

But it Doesn't work help pls!\

and to this not!

localPlayer = getLocalPlayer ( )

Edited by Guest
Link to comment

Erggghghh u want my full code? well here it is :P

  
t1 = createMarker (2647, -1234, 34, "corona", 1.2, 0, 0, 255, 250 ) 
t2 = createMarker (2647, -1231, 34, "corona", 1.2, 0, 0, 255, 250 ) 
t3 = createMarker (2647, -1230, 34, "corona", 1.2, 0, 0, 255, 250 ) 
t4 = createMarker (2647, -1228, 34, "corona", 1.2, 0, 0, 255, 250 ) 
  
function bots () 
   ped1 = createPed ( 18, 2622, -1250, 35 ) 
   ped2 = createPed ( 22, 2628, -1253, 35 ) 
   ped3 = createPed ( 56, 2622, -1254, 35 ) 
   ped4 = createPed ( 92, 2524, -1243, 35 ) 
   ped5 = createPed ( 128, 2634, -1244, 35 ) 
   ped6 = createPed ( 140, 2610, -1235, 36 ) 
   setPedRotation ( ped1, 235 ) 
   setPedRotation ( ped2, 183 ) 
   setPedRotation ( ped3, 94 ) 
   setPedRotation ( ped4, 294 ) 
   setPedRotation ( ped5, 301 ) 
   setPedRotation ( ped6, 56 ) 
end 
addCommandHandler ( "peds", bots ) 
  
function anims () 
setPedAnimation ( ped1, "dancing", "dnce_m_a", -1, true, false, false ) 
setPedAnimation ( ped2, "dancing", "dnce_m_b", -1, true, false, false ) 
setPedAnimation ( ped3, "dancing", "dnce_m_c", -1, true, false, false ) 
setPedAnimation ( ped4, "dancing", "dnce_m_d", -1, true, false, false ) 
setPedAnimation ( ped5, "dancing", "dnce_m_e", -1, true, false, false ) 
setPedAnimation ( ped6, "STRIP", "STR_B2C", -1, true, false, false ) 
end 
addCommandHandler ( "dance", anims ) 
  
werkm = createMarker (2612, -1228, 34, "corona", 1.0, 0, 0, 255, 250 ) 
  
function geld (player) 
player = getLocalPlayer () 
givePlayerMoney ( player, 1 ) 
end 
  
  
function work (player) 
setElementPosition ( player, 2610, -1228, 35 ) 
setPedAnimation ( player, "STRIP", "STR_B2C", -1, true, false, false )   
setElementModel ( player, 140 ) 
lol = setTimer (geld, 9000, 0 ) 
end 
addEventHandler ( "onMarkerHit", werkm, work ) 
  
function pissen (player) 
setPedAnimation ( player, "PAULNMAC", "Piss_Loop", -1, true, false, false ) 
end 
  
addEventHandler ( "onMarkerHit", t4, pissen ) 
addEventHandler ( "onMarkerHit", t3, pissen ) 
addEventHandler ( "onMarkerHit", t2, pissen ) 
addEventHandler ( "onMarkerHit", t1, pissen ) 
  

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...